rDrama/files/routes
TLSM 716f078e81 Fix 'hot' sort intermediate value out-of-bounds.
Fixes #321. Due to the extremely large quantity of comments on a
typical Motte post, 'hot' sorting logic underflowed an intermediate
value. Roughly:

  |(-1 000 000) * (103 [votes] + 1 + 2723 [comments] / 1)| > 2^31

We resolve this by reducing the coefficient from 1e6 to 1e5, which
reduces precision of intermediate calculations somewhat, and by
dividing #comments by 10 rather than 1, which better matches Motte
user behavior regardless: Users comment much more often than vote.
This buys us two orders of magnitude more headroom before out-of-
bounds. Shouldn't be an issue until the CW thread reaches ~200k
comments.
2022-09-12 12:16:54 -05:00
..
__init__.py Add trailing LF to text files 2022-05-10 21:05:51 -04:00
admin.py Fix approved filtered comments not notifying. 2022-09-09 23:31:20 -05:00
awards.py Remove coins from popovers, disable coin routes. 2022-09-05 23:44:18 -05:00
chat.py Remove some gimmicky r/drama features. 2022-05-21 21:43:00 -05:00
comments.py Fix approved filtered comments not notifying. 2022-09-09 23:31:20 -05:00
discord.py Add trailing LF to text files 2022-05-10 21:05:51 -04:00
errors.py Only show /leaderboard link in settings2 menu to admins, also a more polite 403 message, also more readable HTML 2022-08-21 01:44:56 +01:00
feeds.py Change default RSS sort to 'new'. 2022-09-12 12:16:54 -05:00
front.py Fix 'hot' sort intermediate value out-of-bounds. 2022-09-12 12:16:54 -05:00
giphy.py Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
login.py Fixes #110 "Signout doesn't always work" 2022-07-29 06:47:19 -05:00
oauth.py Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
posts.py Added filter to make sure new comments only show up on page refresh 2022-09-11 06:10:58 -05:00
reporting.py Switch over comment reporting to use the new system 2022-07-09 06:33:41 -05:00
search.py Add trailing LF to text files 2022-05-10 21:05:51 -04:00
settings.py Remove slur replacer toggle from settings. 2022-09-06 12:35:22 -05:00
static.py Fix #316: restrict access to /badges, remove link. 2022-09-11 23:18:14 -05:00
subs.py Add trailing LF to text files 2022-05-10 21:05:51 -04:00
users.py Remove obfuscated auto-shadowban on keyword. 2022-09-05 23:44:18 -05:00
votes.py Fix #241: admin action rate limits too low. 2022-09-06 12:35:22 -05:00