rDrama/files/classes
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
..
__init__.py Configure admin section and purchasing a ticket full flow 2022-05-28 22:33:44 -05:00
alts.py mn 2022-05-05 01:09:46 +02:00
award.py mn 2022-05-05 01:09:46 +02:00
badges.py 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
clients.py refactor sorting comments 2022-06-22 21:50:20 +02:00
comment.py Fix exception when serializing comments JSON. 2022-06-24 15:26:18 -04:00
domains.py mn 2022-05-05 01:09:46 +02:00
exiles.py sdf 2022-02-22 15:43:17 +02:00
flags.py fixing 500 errors 2022-06-24 17:35:55 +02:00
follows.py annoying 2022-02-26 15:31:49 +02:00
lottery.py replace spaces with tabs 2022-06-13 20:33:25 +02:00
marsey.py dude subdramas lmao 2022-02-10 22:35:16 +02:00
mod.py gfd 2022-02-14 23:07:31 +02:00
mod_logs.py unhide some mod actions from non-jannies 2022-06-13 15:37:46 +02:00
notifications.py annoying 2022-02-26 15:31:49 +02:00
saves.py dfs 2022-02-15 03:23:13 +02:00
sub.py cache-bust all previously broken images 2022-06-22 17:59:47 +02:00
sub_block.py Add following holes for notifications. 2022-06-09 16:24:24 -04:00
submission.py move regex from helpers.const into its own helper file 2022-06-24 16:30:59 +02:00
subscriptions.py mn 2022-05-05 01:09:46 +02:00
user.py add more @lazy to functions 2022-06-23 18:36:39 +02:00
userblock.py mn 2022-05-05 01:09:46 +02:00
views.py fix bug with profile views (again) (again) 2022-06-22 18:45:34 +02:00
votes.py mn 2022-05-05 01:09:46 +02:00