swagg boi
dc6ef77754
housecleaning
2024-07-04 01:17:58 -04:00
swagg boi
8c78834b61
Implement uh... try/catch sorta
2022-07-22 13:10:18 -04:00
swagg boi
246001b242
Clean up some stuff
2022-07-22 11:06:29 -04:00
swagg boi
f24f6c00a0
Comment for _not_ debugging
2022-07-22 00:58:27 -04:00
swagg boi
5c118d901d
Only send the Webhook in prod
2022-07-22 00:56:57 -04:00
swagg boi
fd6616ef8b
Implemented the Webhook request; all my URL gone
2022-07-22 00:49:33 -04:00
swagg boi
629b3406ac
Check for presence of the webhook URL dotfile
2022-07-21 23:58:41 -04:00
swagg boi
83205cdb00
Added webhook URL dotfiles and module for the webhook requests
2022-07-21 23:45:03 -04:00
swagg boi
d9ea2d78c4
Some smol tweaks to appease perlcritic
2022-04-22 12:44:19 -04:00
swagg boi
1dc9d61832
Make cookie smol
2022-04-16 18:55:22 -04:00
swagg boi
a6b170eca3
Throw 400s for invalid input
2022-04-09 15:35:24 -04:00
swagg boi
cc622dbdf1
Use string 'spam' as true boolean for readability
2022-04-09 15:16:11 -04:00
swagg boi
bfb9102d51
Don't need validation unless it's a POST (probably should re-think this whole route)
2022-04-09 00:54:58 -04:00
swagg boi
c0070041b7
Fix the named route for page (/view)
2022-04-09 00:52:16 -04:00
swagg boi
ad75cd76ec
Fix redirect path
2022-04-09 00:33:26 -04:00
swagg boi
d27945b2b3
Use unique <meta> tags for single message view; change status to 404 if page is not found
2022-04-08 14:17:23 -04:00
swagg boi
121ed5ab52
Small style tweaks
2022-04-08 13:10:52 -04:00
swagg boi
94dfa4043e
Small tweaks I've been meaning to make
2022-04-08 12:59:15 -04:00
swagg boi
5583b9f608
Consolidate /view and /spam base paths
2022-04-07 23:04:09 -04:00
swagg boi
36d1fcd7fa
Use restrictive placeholder in addition to optional for page number
2022-04-07 22:14:24 -04:00
swagg boi
07e7f69e90
Fix <nav> hyperlink; implement placeholder for /spam too
2022-04-07 21:13:50 -04:00
swagg boi
8f95b616cf
Implement /view route w/ page_number placeholder
2022-04-07 21:04:41 -04:00
swagg boi
f2ca5cc1b6
Implement get_post_by_id() and the message_id view
2022-04-04 22:56:45 -04:00
swagg boi
1809a765f2
Implement the /message/:id route
2022-04-04 21:21:11 -04:00
swagg boi
80b2acb79a
expires vs expiration
...
It appears I have misunderstood the difference between `expires =>
time() + 3600` and `expiration => 3600` as I thought `expires` would
just set the expiration one time and not update for subsequent
requests. Per this discussion thread, that does not appear to be
correct:
https://github.com/mojolicious/mojo/discussions/1833
Thus I felt it best to just set the expiry period to 30 min and allow
that to reset on subsequent requests rather than reinvent the wheel
2022-04-04 17:22:23 -04:00
swagg boi
a36e43ea11
Whoopsie... Remember to run your unit tests before comitting, folks
2022-04-04 14:02:05 -04:00
swagg boi
fe739e7f2b
I should've been using 'expires' for the session rather than 'expiration'
2022-04-04 13:48:31 -04:00
swagg boi
29bf6f71e2
Lower session lifetime cuz visitor counter
2022-04-04 00:04:09 -04:00
swagg boi
dfb27d3815
Boop
2022-04-03 23:35:59 -04:00
swagg boi
27ec34b208
Make the visitor counter increment when a new session is created
2022-04-03 21:34:22 -04:00
swagg boi
3532310738
Display the visitor counter
2022-04-03 21:04:09 -04:00
swagg boi
6fe9a59b6d
Some style tweaks, this was buggin me
2022-04-03 17:11:02 -04:00
swagg boi
54aa04d04c
Add helper for the new model
2022-02-09 21:17:49 -05:00
swagg boi
c26f034a3d
Set session to 1 day
2022-02-09 19:33:47 -05:00
swagg boi
02355ee08b
Implement /spam route
2022-01-12 15:18:34 -05:00
swagg boi
02b087a38e
Fix post count
2022-01-11 20:15:53 -05:00
swagg boi
53f292ac7c
Implement post count
2022-01-11 19:51:45 -05:00
swagg boi
681ed961e8
Just specify Postgres connection string in conf file
2022-01-10 14:18:49 -05:00
swagg boi
361c4d432a
Explicit return for the redirect in the /sign route
2022-01-10 13:44:30 -05:00
Daniel Bowling
770cc23884
Getting things ready to deploy
2022-01-10 12:53:10 -05:00
swagg boi
d7c0f715d2
More tests
2022-01-08 22:01:51 -05:00
swagg boi
e4aad2ccbd
Validate input
2022-01-08 21:21:22 -05:00
swagg boi
1d91bd3677
Don't need this
2022-01-04 23:32:47 -05:00
swagg boi
2af783940a
Increase message size and use wrapping for message dispaly
2022-01-04 22:05:51 -05:00
swagg boi
13e89cdfa1
Fix CAPTCHA and flash error for spam
2022-01-02 17:53:43 -05:00
swagg boi
837304d565
Set session expiration
2022-01-02 02:45:27 -05:00
swagg boi
da91154df7
Set default value for message_date column
2022-01-02 02:30:10 -05:00
swagg boi
baca0cd515
Filter URLs out of message body
2022-01-02 02:01:45 -05:00
swagg boi
26aa2ba19f
Implement is_spam column
2022-01-02 01:31:33 -05:00
swagg boi
2845fd7499
Initial flash error implementation
2022-01-01 23:37:41 -05:00