forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/helpers
Snakes 227ddbec0e Truncate notifs with too-long bodies.
In general, we don't do a great job of length validating body_html
fields. Lots of ways to get 500 errors by providing too long of
input. Really ought to find a way to fix it in the classes/comment.py
and classes/submission.py classes. In the interim, the recent gifts
messages change is salient because the notification can 500 out
mid-way through performing coin transactions.

Recommended to find a better way of truncating or safely bubbling
the exception up. Truncating probably not best long-term solution
because it could hypothetically permit strings that would otherwise
be considered unsanitized.
2022-06-01 00:54:05 -04:00
..
alerts.py Truncate notifs with too-long bodies. 2022-06-01 00:54:05 -04:00
blackjack.py Add can_gamble user setting. 2022-05-30 05:32:45 -04:00
const.py Remove new schema changes from file and replace account ids for lottery system 2022-05-29 22:17:31 -05:00
discord.py sfd 2022-05-07 06:13:19 +02:00
get.py fds 2022-05-25 22:16:26 +02:00
jinja2.py Don't show lotteries on the sister sites 2022-05-29 20:43:16 -05:00
lazy.py certified good commit 2022-05-25 19:01:29 +02:00
lottery.py Lottery: add admin participants listing. 2022-05-31 23:20:39 -04:00
media.py sfd 2022-05-27 19:19:12 +02:00
sanitize.py Refactor e81edb711d for modularity. 2022-05-30 00:30:10 -04:00
security.py mn 2022-05-05 01:09:46 +02:00
slots.py Add can_gamble user setting. 2022-05-30 05:32:45 -04:00
treasure.py Treasure: raise minimum reward 10 -> 12. 2022-05-31 20:23:19 -04:00
wrappers.py Rate limiter: fix 81e2a5a for logged-out. 2022-05-30 23:50:56 -04:00