Commit Graph

16507 Commits (ec366d876100daaea5fc236716430d6a88c95a92)

Author SHA1 Message Date
Aevann1 ec366d8761 sneed 2022-06-26 06:00:02 +00:00
Aevann1 0f81e6f551 sneed 2022-06-26 00:41:28 +00:00
Snakes 7b38be0101 Reduce query volume in user.user_awards.
The User model class method user_awards previously made one query
per type of award. This has been replaced with a new query that
retrieves all owned award quantities at once using GROUP BY.
2022-06-25 20:22:56 -04:00
Aevann1 f184351d5d make glowie marsey not clip 2022-06-25 22:48:41 +02:00
Aevann1 bc7185b5af order awards by the time they were awarded 2022-06-25 22:33:51 +02:00
Aevann1 c1d227e2b6 exclude poll bots from "simps for" lists 2022-06-25 22:24:47 +02:00
Aevann1 af680d8a94 make it whenever a post has "thread" (instead of "megathread") in the title, the comments are ordered by new 2022-06-25 21:55:29 +02:00
Aevann1 7a402d2449 order pins by new 2022-06-25 21:54:18 +02:00
Aevann1 905e32c60c remove the javascript block i used for testing 2022-06-25 19:29:34 +02:00
Aevann1 2b86a8fee0 minor tweak to modal behavior 2022-06-25 19:14:57 +02:00
Aevann1 c53b8dae81 add ability to sort votes table by truescoer 2022-06-25 17:44:02 +02:00
Aevann1 f415b469de Revert "Exclude self-votes from user vote summaries totals."
This reverts commit 69482aed3a.
2022-06-25 17:41:36 +02:00
Aevann1 5d777a07b0 cache bust 2022-06-25 17:36:35 +02:00
Aevann1 1abcbecf19 fix RAM shit 2022-06-25 17:33:46 +02:00
Aevann1 be0c473171 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-25 17:20:37 +02:00
Aevann1 66586dfce3 testing RAM thing 2022-06-25 17:20:34 +02:00
Snakes 69482aed3a Exclude self-votes from user vote summaries totals.
The user routes upvoters, downvoters, upvoting, and downvoting
now exclude self-votes from the summary totals.

Also, the diff touches a number of other lines where the local
variable `id` was renamed to `uid` for semantic clarity.
2022-06-25 02:00:09 -04:00
Snakes aaf718c78c Fix timeout in sanitize from link_fix_regex.
h/t to @official-techsupport for finding and help fixing this bug.
When given certain pathological input, `sanitize` would time out
(notably only on posts, rather than comments, perhaps due to the
longer maximum length of input). For example, using as input the
result of:

    with open("test.txt", "w") as f:
        for i in range(26):
            f.write(f":{chr(ord('a') + i)}: ")
        f.write('x' * 20_000)

We believe this to be because of some combination of the greedy
quantifiers and the negative lookahead before the match. The regex
was rewritten to (in theory) have much more linear performance.
2022-06-25 01:28:43 -04:00
Aevann1 70c2b2cffa try fixing RAM thing 2022-06-25 05:19:28 +02:00
Aevann1 e4c50939e6 Revert "make threshold for RAM 3GB instead of 2.99GB"
This reverts commit 37b8fc5666.
2022-06-25 05:06:25 +02:00
Aevann1 37b8fc5666 make threshold for RAM 3GB instead of 2.99GB 2022-06-25 05:01:19 +02:00
Aevann1 a990e6cf6e small adjustment to emoji search 2022-06-25 04:44:06 +02:00
Aevann1 6dc824b29e make emoji search work on "enter" only for 3GB RAM and lower 2022-06-25 04:22:04 +02:00
Aevann1 8ae172f95c Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-25 04:00:52 +02:00
Aevann1 59302696f6 remove 150 truescore requirement on discord 2022-06-25 04:00:49 +02:00
Aevann1 56a317bb56 "Bux" to "Marseybux" 2022-06-25 03:54:23 +02:00
Aevann1 eb0f8397f0 sneed 2022-06-25 01:00:02 +00:00
Aevann1 51c91de1dd fix bug with confirmation dialog 2022-06-25 02:25:08 +02:00
Aevann1 6dcf3fde2d reduce viewmore threshold to 100 again 2022-06-25 02:18:06 +02:00
Aevann1 149db9ebe3 cachebust marked.js 2022-06-25 02:17:16 +02:00
Aevann1 ffd0d9ed31 show duration on ban icon tooltip 2022-06-25 02:11:00 +02:00
Aevann1 d59a80245d add total counter for simps, haters, simping for, hates 2022-06-25 01:22:20 +02:00
Aevann1 55ebd98f40 add confirmation dialog when u close tab while text is in commentbox/messagebox 2022-06-25 00:58:15 +02:00
Aevann1 2e8fb4ac07 sneed 2022-06-25 00:27:42 +02:00
Aevann1 294fddcba3 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-25 00:21:40 +02:00
Aevann1 5ce276854d remove the 1wk edit limit for posts, but keep it for comments 2022-06-25 00:21:37 +02:00
Aevann1 c81375de7b sneed 2022-06-24 22:00:03 +00:00
Aevann1 ab1f6fac65 fix 500 error 2022-06-24 22:54:45 +02:00
Aevann1 25a95dfb3e Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-24 22:52:43 +02:00
Aevann1 cbdf3f0a18 fix snappy 2022-06-24 22:52:38 +02:00
Snakes 47159f338d Fix exception when serializing comments JSON.
The JSON API endpoints that return comments, most notably `/comments`
returned 500s and created a stack trace with:

  TypeError: Object of type method is not JSON serializable

Further debugging revealed this was because json.encoder was being
given a <bound method lazy.<locals>.wrapper of <Comment(id=123)>> to
serialize.

The introduction of the bug was traced to 8ecb4582d0 where it was
discovered that the (seemingly inadvertent) removal of the @property
decorator on classes/comment.py:parent_fullname was the root cause.

In light of the fact that parent_fullname was unrelated to the changes
intended in 8ecb4582d0 and that no other refactoring around
parent_fullname was done, it was restored to being a @property rather
than its callers modified to invoke it as a method.
2022-06-24 15:26:18 -04:00
Aevann1 a2a9c2666d make sure snappy's comment body doesnt get above 10k characters 2022-06-24 20:10:28 +02:00
Aevann1 6b1560a9d2 add hunter biden's fart 2022-06-24 19:56:28 +02:00
Aevann1 43751dc4ec Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-24 19:32:34 +02:00
Aevann1 c5c21da76f validate colors 2022-06-24 19:32:31 +02:00
Snakes e896a965ad Fix crab award media path. 2022-06-24 13:22:23 -04:00
Aevann1 a64dd729e8 escape asterick when quoting 2022-06-24 18:25:21 +02:00
Aevann1 743ac90f08 fix 500 error 2022-06-24 18:15:37 +02:00
Aevann1 13143a72ab disable animations for ppl with lower than 3GB RAM 2022-06-24 18:12:58 +02:00
Aevann1 17c81ea9ef reduce margin above "toggle preview" 2022-06-24 17:40:05 +02:00