forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

96 Commits (b00a9e8e8562eb8189d26045a4bfd237c0e0cceb)

Author SHA1 Message Date
Aevann 69649cb503 minor improvement to notifs 2023-03-11 10:51:19 +02:00
Aevann 19e3145f45 improvement to notifs 2023-03-11 10:21:33 +02:00
Aevann d8575791be notif fix 2023-03-10 01:41:57 +02:00
Aevann 117624f313 add session["GLOBAL"] 2023-03-02 22:29:22 +02:00
Aevann 4980bafc62 fix duplicate notifs 2023-02-28 20:51:11 +02:00
Aevann 24b3e96e03 minor fix to notifs 2023-02-28 19:27:36 +02:00
Aevann 8f50c90b17 fix to /notifications 2023-02-28 18:52:29 +02:00
Aevann 86b0d2f5c1 fix comments not appearing 2023-02-27 18:16:12 +02:00
Aevann 984aecec9a destroy the shadow realm (#135)
Co-authored-by: Aevann <randomname42029@gmail.com>
Reviewed-on: rDrama/rDrama#135
2023-02-27 15:38:12 +00:00
Aevann 17bb6dad48 blackjack fix exploit 2023-02-27 07:33:45 +02:00
Aevann e1c9f752c3 better replies 2023-02-27 04:11:41 +02:00
Aevann 6e3dd62a47 fix irrelevant replies in notifs 2023-02-27 03:56:10 +02:00
Aevann 825cee14eb always show parent comment in /notifications 2023-02-26 13:14:18 +02:00
Aevann fe0b8887bc change 1/second ratelimit to 1/2 second 2023-02-26 12:26:26 +02:00
Aevann 8085fa3351 make modmail appear in /search/messages 2023-02-26 11:22:42 +02:00
Aevann 890fedf1f3 remove redundant condition 2023-02-26 11:14:39 +02:00
Aevann 82a73392a9 fix errors 2023-02-26 10:49:09 +02:00
Aevann 8c495c914a default ratelimit doesnt apply implicitly if theres other @limiter.limit before the function, so add it explicity before all functions 2023-02-26 10:41:04 +02:00
Aevann 7aaeedea36 better ratelimiting 2023-02-26 03:42:39 +02:00
Aevann 6cc9c784cc minor changes to notifs 2023-02-26 01:44:31 +02:00
Aevann 8be4e6adc2 always show parent comment in notifications 2023-02-25 21:57:50 +02:00
Aevann 6b2bbb066f same as last commit 2023-01-27 15:51:04 +02:00
Aevann ffa04a3cd5 constantify my log action types 2023-01-27 10:18:05 +02:00
Aevann d6dda995af fix cartesian product 2023-01-26 07:47:20 +02:00
Aevann 2754abb58e fix 500 error 2023-01-26 07:39:17 +02:00
Aevann 5eea908e6f fix 500 error 2023-01-26 07:36:41 +02:00
Aevann ab580f626f fix 500 error 2023-01-26 07:31:47 +02:00
Aevann a40dee5bd8 improve user ratelimiting 2023-01-21 06:39:46 +02:00
Aevann 044664a25e get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
Aevann 8ee189022b seething hatred 2022-12-30 21:01:47 +02:00
Aevann c4872ecb07 Revert "attempt to fix ratelimiting user"
This reverts commit 99597fc36c.
2022-12-30 20:43:13 +02:00
Aevann 99597fc36c attempt to fix ratelimiting user 2022-12-30 20:40:58 +02:00
Aevann 9a8c986f93 attempt to fix ratelimiting user 2022-12-30 20:33:07 +02:00
Aevann 04c91082a5 also show me "unshadowban" and "unban_user" 2022-12-28 11:37:55 +02:00
Aevann 97476a604e actually fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3295805 2022-12-24 00:30:03 +02:00
Aevann 4d1183f3ec Revert "Revert "fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3256216?context=8#context""
This reverts commit 5a41160865.
2022-12-24 00:29:04 +02:00
Aevann 5a41160865 Revert "fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3256216?context=8#context"
This reverts commit 537e729195.
2022-12-24 00:26:58 +02:00
Aevann 667142adc4 try fixing https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3295805 2022-12-24 00:24:16 +02:00
Aevann1 c190fa89b2 give jannoids notifs for deleted and removed comments 2022-12-19 23:28:37 +02:00
Aevann1 537e729195 fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3256216?context=8#context 2022-12-17 17:57:50 +02:00
Aevann1 fdf8380659 fix wrong syntax (marseybrainlet) 2022-12-16 22:25:48 +02:00
Aevann1 ecfba3e3b5 give me notifs for only "ban_user" and "shadowban" 2022-12-16 21:34:01 +02:00
Aevann1 7fa88a3633 make unread inaccessible notifs as read 2022-12-13 18:47:57 +02:00
justcool393 ab41db22b7 [DO NOT MERGE] multiple sub banners (#59)
allows multiple sub banners

Snakes note: By request of Carp, especially for WPD.

Co-authored-by: justcool393 <justcool393@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: rDrama/rDrama#59
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-11 23:44:34 +00:00
Aevann1 7f4691c79d fix prev commit 2022-12-01 00:33:41 +02:00
Aevann1 e1ed46fa36 rework reddit notifs - testing on pcm lol 2022-12-01 00:29:13 +02:00
justcool393 0ff034b01b add typing to a bunch of routes 2022-11-26 15:00:16 -06:00
Snakes 9eab252e5b
Fix reply/mention notifications from muted users.
Consider the case of the current /notifications filter condition:
    WHERE ... NOT ((comments.sentto = 2) AND (users.is_muted))

SELECT 1 WHERE NOT ((null = 2) AND (true)); ⇒ 0 rows
SELECT 1 WHERE NOT ((1 = 2) AND (true)); ⇒ 1 row
SELECT 1 WHERE NOT ((2 = 2) AND (true)); ⇒ 0 rows

We want the first expression, where comments.sentto = null, to evaluate
to false, not to null, so it negates to true. Behavior as written is:

SELECT 1 WHERE NOT ((null = 2) AND (true)); →
SELECT 1 WHERE NOT (null AND true); →
SELECT 1 WHERE NOT null; →
SELECT 1 WHERE null;

Which guarantees a null return set. If we check first for non-nullity:

SELECT 1 WHERE NOT ((null IS NOT null) AND (null = 2) AND (true)); ⇒ 1
SELECT 1 WHERE NOT ((1 IS NOT null) AND (1 = 2) AND (true)); ⇒ 1
SELECT 1 WHERE NOT ((2 IS NOT null) AND (2 = 2) AND (true)); ⇒ 0
2022-11-21 23:08:31 -05:00
justcool393 255d5b2453 security: fix mute bypass
modmail: constantify user ID
2022-11-17 16:50:06 -06:00
justcool393 a9ebe37e61 sddsdsd 2022-11-15 06:52:17 -06:00