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
swagg boi
b639cb180d
Style makeover
2022-01-01 21:39:04 -05:00
swagg boi
d9b114f9ea
Back-end stuff to get the URL field working
2021-12-31 23:45:21 -05:00
swagg boi
fb8cc6427e
Don't require name to post
2021-12-31 23:05:34 -05:00
swagg boi
6f06c1292d
Revert back to table name 'messages' for now
2021-12-31 22:49:45 -05:00
swagg boi
f50bcce74e
Make CAPTCHA more random
2021-12-31 22:32:39 -05:00
swagg boi
d7613d8b04
Rename table
2021-12-30 21:39:16 -05:00
swagg boi
9a9a8e2cc1
Initial AssetPack setup
2021-12-22 23:18:35 -05:00
swagg boi
fbd569a3c2
Implement limited query
2021-12-22 22:23:10 -05:00
swagg boi
07353e7d7e
SQL style clean-up
2021-12-19 19:09:16 -05:00
swagg boi
b7bb80cbe0
Increase message body limit
2021-12-19 18:31:41 -05:00
swagg boi
3849ceffae
New TODO
2021-12-19 17:56:45 -05:00
swagg boi
a65dc26506
Some small style tweaks
2021-12-19 17:43:58 -05:00
swagg boi
627fe02bda
Change pager behavior to make more sense
2021-12-19 17:20:58 -05:00
swagg boi
d8ae4529e9
Some small style tweaks
2021-12-19 00:43:18 -05:00
swagg boi
b3da6874e1
Implement CAPTCHA
2021-12-18 23:03:53 -05:00
swagg boi
5124f61383
Move pager logic to Message model
2021-12-12 01:50:07 -05:00
swagg boi
00922379c6
Implement paging
2021-12-11 21:02:54 -05:00