Aevann1
ab5078f313
show vote time
2022-06-27 06:10:10 +02:00
Aevann1
52a8a219ae
make poorcel-mode device-specific
2022-06-27 05:46:32 +02:00
Aevann1
b1ef8e4c62
add poorcel mode
2022-06-27 04:14:53 +02:00
Aevann1
8b8f99695b
make ppl with 200 coins able to bet
2022-06-26 23:40:02 +02:00
Aevann1
e7ce39bd80
fix poll-voting
2022-06-26 22:53:12 +02:00
Aevann1
b450d5bb8c
fix sorting by bottom for comments
2022-06-26 08:16:05 +02:00
Aevann1
81243b48dd
fix sorting by top/bottom for posts
2022-06-26 08:15:06 +02:00
Aevann1
5e745e38d3
revert the saving and subscription shit
2022-06-26 08:11:38 +02:00
Aevann1
5aad7e09a6
dont query polls on frontpage
2022-06-26 08:10:02 +02:00
Aevann1
4d7e7b629b
fix 0ef33b396a
2022-06-26 07:51:02 +02:00
Aevann1
0ef33b396a
make checking if a post is subscribed to less retarded
2022-06-26 07:45:49 +02:00
Aevann1
2a8b7bf281
undefer css (1 less query)
2022-06-26 07:39:46 +02:00
Aevann1
e36adb5bf4
reduce query volume, badge edition
2022-06-26 07:11:25 +02:00
Aevann1
ecc22cfc06
fix 2b1e7f6570
2022-06-26 06:57:31 +02:00
Aevann1
2b1e7f6570
make checking if a post/comment is saved less retarded
2022-06-26 06:54:41 +02:00
Aevann1
e34cbeca31
fix 3b8188fd67
2022-06-26 03:25:17 +02:00
Aevann1
3b8188fd67
fixed version of d83d47e280
2022-06-26 03:22:05 +02:00
Aevann1
a1b137447e
Revert "reduce query volume #1"
...
This reverts commit d83d47e280
.
2022-06-26 03:12:31 +02:00
Aevann1
cff34fb3a4
reducing query volume, #2
2022-06-26 03:11:02 +02:00
Aevann1
cd4b3b7d3b
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-26 02:50:49 +02:00
Aevann1
d83d47e280
reduce query volume #1
2022-06-26 02:50:47 +02: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
bc7185b5af
order awards by the time they were awarded
2022-06-25 22:33:51 +02:00
Aevann1
ffd0d9ed31
show duration on ban icon tooltip
2022-06-25 02:11:00 +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
de8981b5e5
fixing 500 errors
2022-06-24 17:35:55 +02:00
Aevann1
9593dc58dd
move regex from helpers.const into its own helper file
2022-06-24 16:30:59 +02:00
Aevann1
4723640b89
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2175391?context=8#context
2022-06-23 22:02:40 +02:00
Aevann1
ceb72a470c
add more @lazy to functions
2022-06-23 18:36:39 +02:00
Aevann1
39cf7fc48b
refactor normalizing urls at runtime (I put the function in comment.py cuz there were weird import errors that i didnt wanna fix)
2022-06-23 17:47:57 +02:00
Aevann1
a50544d86a
fixing "more comments" button appearing when there's no more comments
2022-06-23 00:25:10 +02:00
Aevann1
0f0a07204c
fix 500 errors
2022-06-22 22:42:19 +02:00
Aevann1
152d39ce6c
fix controversial sorting, give priority to new posts
2022-06-22 22:30:45 +02:00
Aevann1
f149198c9f
fix comments refactor
2022-06-22 22:06:25 +02:00
Aevann1
062542c5af
fix posts refactor (again
2022-06-22 22:03:57 +02:00
Aevann1
3023a45d75
fix posts refactor
2022-06-22 22:03:10 +02:00
Aevann1
10a47ca837
refactor sorting posts
2022-06-22 21:57:57 +02:00
Aevann1
8ecb4582d0
refactor sorting comments
2022-06-22 21:50:20 +02:00
Aevann1
4ba26b7872
fix bug with profile views (again) (again)
2022-06-22 18:45:34 +02:00
Aevann1
fef2e9b024
fix bug with profile views older than a month (again)
2022-06-22 18:42:45 +02:00
Aevann1
171df8a2c1
fix bug with profile views older than a month
2022-06-22 18:42:07 +02:00
Aevann1
9ecca715fd
don't collapse the comment the user is viewing
2022-06-22 18:25:11 +02:00
Aevann1
d704592bdd
cache-bust all previously broken images
2022-06-22 17:59:47 +02:00
Aevann1
20585ca543
add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes)
2022-06-22 17:51:19 +02:00
Snakes
e2cd25db67
WPD: limit hole creation to JL2+.
2022-06-21 01:20:21 -04:00
Snakes
f6b6997f61
Persist activity timestamp to users.
2022-06-20 16:25:03 -04:00
Snakes
dee8eb5154
Replace loading.webp with new marseyloading.
2022-06-19 22:15:33 -04:00
Aevann1
f1f30635b2
hide deleted posts and comments from userpages (frequently requested)
2022-06-19 01:55:45 +02:00
Aevann1
f60db1598d
replace "g.db.query" on pkeys with the much more efficient "g.db.get"
2022-06-18 02:57:23 +02:00
Snakes
564f5b38f1
Clarify notif color logic, extend to modaction.
...
Previously, notification bell linking & color logic was interspersed
between templates and the user model. It doesn't _really_ belong in
the user model, but it's been moved out of the templates to there to
at least centralize it. This was also used as an opportunity to make
the modactions inbox color the bell appropriately.
2022-06-15 01:43:34 -04:00