forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

16237 Commits (28fa03669dd2a1636deea6748031e2d9cff7f423)

Author SHA1 Message Date
Aevann1 28fa03669d use f-string 2022-06-18 00:14:27 +02:00
Aevann1 0b0e3454f8 Fix replacement of link with itself (stolen from themotte) 2022-06-18 00:10:19 +02:00
Aevann1 91f343f662 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-18 00:03:25 +02:00
Aevann1 c01d53aa0d make mentioning case-insensitive again 2022-06-18 00:03:23 +02:00
Aevann1 bf181f083f sneed 2022-06-17 22:00:01 +00:00
Aevann1 50135ce159 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-17 22:42:34 +02:00
Aevann1 17144cd98e Added mentions to the markdown preview (stolen from themotte) 2022-06-17 22:42:31 +02:00
Snakes c46f785229 Loosen auth requirement on /directory. 2022-06-17 16:38:30 -04:00
Aevann1 fae0bee0d9 Refactored mention sanitization (stolen commit from themotte) 2022-06-17 22:37:27 +02:00
Aevann1 a771596d25 videos bullshit 2022-06-17 22:23:04 +02:00
Aevann1 38c12209fb move from os.sytem to subprocess.run, and fix bug 2022-06-17 22:16:22 +02:00
Snakes a0d923e759 Use subprocess.check_call in media.py 2022-06-17 16:15:42 -04:00
Aevann1 62d5a0d8dc Revert "use notify_mod_actions in deletion msg"
This reverts commit d7a84a2188.
2022-06-17 21:28:37 +02:00
Aevann1 d7a84a2188 use notify_mod_actions in deletion msg 2022-06-17 21:27:32 +02:00
Aevann1 e072e15819 cache profile pics for 1 day to prevent DDOS 2022-06-17 21:21:26 +02:00
Aevann1 30ed6daa26 fix RCE, thank you @Camas 2022-06-17 20:36:34 +02:00
Aevann1 4bae98dab0 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-17 20:30:08 +02:00
Aevann1 2c6b6cc371 notify chadmins of hole deletions 2022-06-17 20:30:05 +02:00
Aevann1 c972e0db4c sneed 2022-06-17 08:00:02 +00:00
Snakes b995b4ddfb Amend 9b17bb1cfe78: fix userpage for logged-out.
The previous fix to shadowbanned users not being able to view their
own profile broke userpages for logged out users (and filled the log
up with 500s) due to sloppy logic around accessing v.id. This has
been remedied.
2022-06-17 02:30:20 -04:00
Aevann1 65c5351b02 sneed 2022-06-17 02:00:02 +00:00
Snakes 9b17bb1cfe Fix shadowbanned 404 on own profile. 2022-06-16 20:06:00 -04:00
Aevann1 3411381442 sneed 2022-06-16 22:54:07 +00:00
Aevann1 7407cd3877 sneed 2022-06-16 22:53:52 +00:00
Snakes d08d2588c1 Content: add emoji 'wolfsal'. 2022-06-16 18:50:53 -04:00
Aevann1 35875d69f6 stop replacing "nitter.net" with "twitter.com" (to fix this shit https://chapotraphouse.club/post/77517/xueen-ezra-is-taunting-the-pigs/2132884?context=8#context) 2022-06-16 18:46:32 +02:00
Aevann1 65d9209568 increment css in assetcache.html 2022-06-16 17:57:25 +02:00
Aevann1 99910591c5 fix this https://i.imgur.com/rBomhtq.png 2022-06-16 17:36:01 +02:00
Aevann1 0fb48bc380 make reddit_notifs_jl_min default to be 1 2022-06-16 16:15:24 +02:00
Aevann1 d4260138f5 Revert "de-nerf tilt award on mobile"
This reverts commit 3985a58815.
2022-06-16 14:37:23 +02:00
Aevann1 cab92d3c24 add marsey.cat to safe list 2022-06-16 14:36:43 +02:00
Aevann1 cef023ded3 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-16 14:34:37 +02:00
Aevann1 57e63a2d8b hide autopoller/autobetter/autochoice from /comments 2022-06-16 14:34:35 +02:00
Snakes 46520a9f8c Site-specific: change lotto for PCM. 2022-06-15 22:23:21 -04:00
Snakes c925daf8c6 Content: correct emoji.json marseymummified. 2022-06-15 21:23:46 -04:00
Aevann1 59456fc895 Revert "fuck you, use a real browser"
This reverts commit 6ecca70924.
2022-06-16 02:31:14 +02:00
Aevann1 6ecca70924 fuck you, use a real browser 2022-06-16 01:56:24 +02:00
Aevann1 7a23785c20 sneed 2022-06-15 23:00:01 +00:00
Snakes a8155d964a Kitchen sink: emoji content, assert, assetcache.
These are all minor and uncontroversial enough it just felt gross
making multiple commits.
  - Adds marseymummified.
  - Changes the new `raise ValueError(...)` in badge_grant to
    an `assert`.
  - Expands assetcache to a convenient grab bag of JS files.
2022-06-15 17:17:31 -04:00
Snakes aea7e0b83a Exclude golden Marseys from animations flag.
Fixes: https://rdrama.net/post/18459/-/2128499?context=8#context
2022-06-15 16:40:30 -04:00
Snakes 7e54f858d3 Amend f8ae2a3d17c6: revert >= logic, fail loudly.
First, the apparent errors with >= 9 and 99 in the Marseys and
referrals code after the refactor are not actually bugs: they were
bug fixes mixed in with the refactor to fix an off-by-one.

Next, instead of failing silently on the `not user` branch in
badge_grant, we throw a ValueError. This retains the current
behavior where users get 500s to report while also enforcing the
assertion near the edge of the function.
2022-06-15 16:32:25 -04:00
Aevann1 ef00f31831 trying to fix a bug with old image embeds 2022-06-15 22:23:22 +02:00
Aevann1 4a1b3c03af Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-15 22:12:05 +02:00
Aevann1 cd5f8a528b in the preview, dont replace '\n' with '\n\n' if the text
has "```" or "<pre>" (to match backend behavior)
2022-06-15 22:12:03 +02:00
Snakes f8ae2a3d17 Amend 3bc98f0a6b84: minor logic, style. 2022-06-15 16:08:26 -04:00
Aevann1 f4a6e76ab5 add nuke and un-nuke notifications 2022-06-15 21:36:02 +02:00
Aevann1 3bc98f0a6b extend TLSM's badge_grant() to almost all instanes where badges are granted 2022-06-15 21:33:21 +02:00
Aevann1 f830284560 sneed 2022-06-15 19:00:01 +00:00
Aevann1 d32a3774a6 fix bug where user banner sometimes wasn't shown on mobile 2022-06-15 20:29:54 +02:00
Aevann1 3985a58815 de-nerf tilt award on mobile 2022-06-15 19:05:04 +02:00