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
Aevann1
0f49c8e32f
replace spaces with tabs
2022-06-13 20:33:25 +02:00
Aevann1
cf827bdf38
unhide some mod actions from non-jannies
2022-06-13 15:37:46 +02:00
Snakes
acde2c856b
Enable JL2 viewing shadowbanned comments.
2022-06-12 05:48:27 -04:00
Aevann1
a082105ab8
remove weird trailing tabs
2022-06-11 11:56:16 +02:00
Aevann1
358ce08544
don't collapse gambling comments when viewing a comment
2022-06-11 11:30:46 +02:00
Aevann1
545f276940
add created_utc column to badges for ordering them on userpages
2022-06-10 23:40:43 +02:00
Aevann1
995e6e9edb
add thumbnail for posts linking to same site
2022-06-10 21:21:25 +02:00
Aevann1
2db414f12d
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-10 14:48:14 +02:00
Aevann1
2b82f95a98
Make hole cost constant instead of variable
2022-06-10 14:48:11 +02:00
Snakes
4db48a6ec9
Separate modaction notifs from inbox.
2022-06-10 08:28:46 -04:00
Snakes
8709ca816d
Add Y'all Seein' Eye award v2 for offsitementions.
...
Reusing the assets and design for the ill-fated YSE in a0f441a67d
.
This time, the award provides access to our offsite mentions (reddit
notifs).
2022-06-10 07:12:19 -04:00
Snakes
b0554ce303
Add follower count to /holes table.
2022-06-10 06:06:56 -04:00
Snakes
dc7f13304e
Add following holes for notifications.
2022-06-09 16:24:24 -04:00
Snakes
b94e71450f
Add un-holing to hole report command.
2022-06-09 02:42:52 -04:00
Snakes
fd1429a82f
PCM content: swap banner.
2022-06-01 16:08:33 -04:00
Snakes
04a878a8c4
Make betting polls respect can_gamble.
2022-05-30 08:13:11 -04:00