forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/classes
Snakes 9e1a3be278 Fix DMs improperly treating all users as blocked.
The changes to helpers/get.py @ get_user(...) in a6b7fed2fc resulted
in `is_blocking` no longer being present on all User objects retrieved
via `get_user`. This triggered a latent identifier shadow where the
property method `User.is_blocking` on the User model caused checks for
blocks on objects retrieved via `get_user` to always return True.

Notably: when the get_user return value left `is_blocking` unset and
thus implied False, the following expression yielded True due to the
presence of the first-class function at the same identifier:

    hasattr(user, 'is_blocking') and user.is_blocking
2022-07-03 13:55:25 -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 Poll rework (#312) 2022-07-02 08:48:04 +02:00
badges.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
clients.py show timestamps in the user timezone 2022-07-03 09:41:25 +02:00
comment.py order child comments by upvotes 2022-07-03 04:10:02 +02:00
domains.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
exiles.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
flags.py show timestamps in the user timezone 2022-07-03 09:41:25 +02:00
follows.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
lottery.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
marsey.py dude subdramas lmao 2022-02-10 22:35:16 +02:00
mod.py show timestamps in the user timezone 2022-07-03 09:41:25 +02:00
mod_logs.py show log timestamp in local timezone 2022-07-03 10:38:19 +02:00
notifications.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
polls.py show timestamps in the user timezone 2022-07-03 09:41:25 +02:00
saves.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
sub.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
sub_block.py Add following holes for notifications. 2022-06-09 16:24:24 -04:00
submission.py show timestamps in the user timezone 2022-07-03 09:41:25 +02:00
subscriptions.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
user.py Fix DMs improperly treating all users as blocked. 2022-07-03 13:55:25 -04:00
userblock.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
views.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
votes.py show timestamps in the user timezone 2022-07-03 09:41:25 +02:00