Commit graph

171 commits

Author SHA1 Message Date
swagg boi 8c78834b61 Implement uh... try/catch sorta 2022-07-22 13:10:18 -04:00
swagg boi 9c847637d2 Add this dependency for building with Perl v5.36 2022-07-22 12:56:08 -04:00
swagg boi c77d8d050c Moar documentation 2022-07-22 11:34:21 -04:00
swagg boi 246001b242 Clean up some stuff 2022-07-22 11:06:29 -04:00
swagg boi 32fb9d0268 Upgrade Perl and copy the Webhook URL 2022-07-22 01:11:17 -04:00
swagg boi 4c7e6f5c31 Fergot quotes 2022-07-22 01:04:08 -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 cb029962c5 Add image to URL previews 2022-07-21 23:16:43 -04:00
swagg boi 962bb2d934 Add favicon 2022-07-21 20:58:56 -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 d6325f0dca Revert "Make smol"
This reverts commit 2090eb1dd8.
2022-04-14 21:51:53 -04:00
swagg boi 2090eb1dd8 Make smol 2022-04-14 20:56:04 -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 f8502c762f Added some parens for readability 2022-04-09 15:10:02 -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 ecbdb2986f FIXED 2022-04-08 16:31:20 -04:00
swagg boi 9aae3a65a8 Tweak <meta> tags 2022-04-08 16:17:42 -04:00
swagg boi 24102e1c47 Make this test a lil more specific 2022-04-08 16:01:30 -04:00
swagg boi c9ffdd4760 Moar tests 2022-04-08 15:56:06 -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 6e534d1fb4 Fix hyperlinks in <nav> 2022-04-08 14:06:08 -04:00
swagg boi 6d9bf6ce36 New testing 2022-04-08 13:47:33 -04:00
swagg boi 121ed5ab52 Small style tweaks 2022-04-08 13:10:52 -04:00
swagg boi d32e3a9c2b Clean up the <meta> tags 2022-04-08 13:07:31 -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 222d9e8a74 Impelement hyperlinking of individual message IDs 2022-04-06 22:44:05 -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 71501bc904 What's next?? 2022-04-03 21:42:53 -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 7c951baaa6 Merge branch 'main' into visitor_counter 2022-04-01 22:39:07 -04:00