forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

12827 Commits (dedbc0296898d27c1c3961d5a3ab428d3bf13299)

Author SHA1 Message Date
Aevann1 668cfdc90a made it not possible to edit posts/comments older than a week 2022-06-18 22:53:10 +02:00
Aevann1 eba4452d79 fix 500 error 2022-06-18 22:41:00 +02:00
Aevann1 dc8f230ae4 fix 500 error 2022-06-18 22:11:50 +02:00
Aevann1 dde19f7d85 fix 500 error related to variables 2022-06-18 19:50:03 +02:00
Aevann1 5520447d55 make modmail messages use the files refactor 2022-06-18 19:41:24 +02:00
Aevann1 8eaacff14b switch "chaptraphouse.club" with "rdrama.lol" 2022-06-18 18:32:43 +02:00
Aevann1 b34dd88560 remove legacy code in video upload (thx @everyone) 2022-06-18 18:23:10 +02:00
Aevann1 b017dedd24 fix bug in image preview in /submit 2022-06-18 18:20:36 +02:00
Aevann1 453d83856e add .press tld 2022-06-18 18:07:57 +02:00
Aevann1 ccdabcba29 allow uploading of all types of files (using lain.la)
+ allow multiple file upload in bios and messaging admins
2022-06-18 17:53:34 +02:00
Aevann1 56f8cf793e give visible bots a body column (so their comments are searchable)
+ don't sanitize zoz/longpostbot/aj comments
2022-06-18 17:37:01 +02:00
Aevann1 8d83c6944b readjust ricardo3 2022-06-18 15:27:04 +02:00
Aevann1 31b0bd5b68 readjuct ricardo3 again 2022-06-18 15:22:03 +02:00
Aevann1 088e98ed1b readjuct ricardo3 2022-06-18 15:21:03 +02:00
Aevann1 89a85a8ec0 remove weird trailing tabs 2022-06-18 04:13:55 +02:00
Aevann1 7387616100 move all of wholesome award to translate 2022-06-18 04:11:27 +02:00
Aevann1 712bb52392 fix 500 error on /settings/gumroad 2022-06-18 03:59:33 +02:00
Aevann1 76ac00f04b convert 1 part of wholesome award on inferior browsers to translate + clean up awards.css 2022-06-18 03:53:25 +02:00
Aevann1 c609e98ba5 move ricardo from top-left to translate 2022-06-18 03:39:50 +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
Aevann1 c42cb538aa add a button for PCM to print marseybux 2022-06-18 02:35:27 +02:00
Aevann1 82cede6e1a more gif modal bullshit 2022-06-18 01:57:02 +02:00
Aevann1 8c137fef2b verify cloudflare 2022-06-18 01:22:56 +02:00
Aevann1 96d7df327f Revert "CF verification"
This reverts commit 62644f452f.
2022-06-18 01:19:42 +02:00
Aevann1 62644f452f CF verification 2022-06-18 01:18:06 +02:00
Aevann1 80852cc395 specify encoding when reading text files 2022-06-18 00:19:18 +02:00
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 c01d53aa0d make mentioning case-insensitive again 2022-06-18 00:03:23 +02: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
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
Snakes 9b17bb1cfe Fix shadowbanned 404 on own profile. 2022-06-16 20:06:00 -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
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
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 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
Aevann1 d8ee822082 stop rules from being hidden for mobilecels in hamborger menu 2022-06-15 18:32:45 +02:00
Aevann1 2b805d823c display sidebar for mobilecels in "/sidebar" 2022-06-15 18:31:46 +02:00
Aevann1 f990397888 more gif modal bullshit 2022-06-15 18:25:31 +02:00
Aevann1 e1c72d580d fix gif modal (kill me) 2022-06-15 18:16:07 +02:00
Aevann1 93ec09e457 fix gif modal (oh my god) 2022-06-15 18:13:34 +02:00
Aevann1 8458480661 fix gif modal (again) 2022-06-15 18:11:43 +02:00
Aevann1 70164932e1 make gif modal column count 2 instead of 4 on mobile 2022-06-15 18:00:13 +02:00
Aevann1 53228db13f attempting to fix a bug with old gifs (no idea if this will work) 2022-06-15 17:45:26 +02:00
Aevann1 5eb67989da reduce gif modal columncount on desktop from 7 to 4 2022-06-15 17:44:30 +02:00
Aevann1 3c598a0393 reduce gif modal padding 2022-06-15 17:44:12 +02:00
Aevann1 69b4667ad0 revert max image size 2022-06-15 15:38:34 +02:00
Aevann1 7ec994d4b3 show gift reason in public transfer log 2022-06-15 15:36:33 +02:00
Aevann1 cdcef7d01d Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-15 15:32:55 +02:00
Aevann1 ff9c7c17fb readjust prophet muhammed (ﷺ) slur filter 2022-06-15 15:32:52 +02:00
Snakes f04c3d6cdd Asst'd mobile CSS & markup fixes.
Kitchen sink commit of semi-related things:
  - `#profile--bio a` tags didn't properly wrap on mobile with some
    browsers. Changing overflow-wrap may fix this.
  - Userpage markup for mobile tried to place profile_bio inside a
    <p> tag. Nesting paragraphs is invalid HTML. It has been made a
    <div> to match desktop and even nearby sections on mobile.
  - Fedi icon in mobile dropdown had the wrong classes, which broke
    consistent styling with its neighbors.
  - fa-square-share-nodes improperly wound up with the fa-share-nodes
    character code when committed.
2022-06-15 05:59:27 -04:00
Snakes e5830ebec7 Add fedi to mobile nav, icon changes. 2022-06-15 04:35:13 -04:00
Snakes f04dffe1a7 Create directory page for sidebar megathreads.
The sidebar previously did not prioritize information as well as
desired, and the proliferation of megathreads led to a number of
icons occupying frontpage visual space despite not often being
useful to frontpage use cases. Therefore, they have been moved to
a new page.

The /directory page is predominantly created with template logic,
and it should be within the ability of our semi-technical jannie
staff to maintain.
2022-06-15 03:27:04 -04: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
Snakes e578108903 Add fediverse to nav dropdown. 2022-06-15 00:44:16 -04:00
Snakes dfe0c64d99 Deduplicate site-specific constants, add SNAKES_ID. 2022-06-14 23:39:37 -04:00
Snakes 1e26fb3d79 Hide self-deleted posts from other users. 2022-06-14 18:04:22 -04:00
Snakes 3301e238d6 Content: alphabet emoji, christian list. 2022-06-14 14:37:45 -04:00
Snakes c61375288f Content: add TLD to sanitize. 2022-06-14 03:48:02 -04:00
Aevann1 70d4d73cd0 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-14 07:54:39 +02:00
Aevann1 e19d54a37e fix expanded image modal 2022-06-14 07:54:36 +02:00
Snakes 131ae3027b Content: Snappy Christian /h/truth. 2022-06-13 20:43:56 -04:00
Aevann1 285aa6a857 limit post padding to posts with "tilt" award only 2022-06-13 23:43:58 +02:00
Aevann1 cec1994ff7 ppl with code contributor badge can now make "(changelog)" posts 2022-06-13 23:41:29 +02:00
Aevann1 f84336143f adding padding to posts (for tilt award) 2022-06-13 22:12:04 +02:00
Aevann1 29d2a549c4 remove !important from tilt award css 2022-06-13 21:08:57 +02:00
Aevann1 92aaa125f8 Revert "rename "#post-award-confetti" to "confetti" (minimalism autism""
This reverts commit 87549f9d3c.
2022-06-13 20:55:18 +02:00
Aevann1 77fab77712 readjust image limits (again) 2022-06-13 20:53:36 +02:00
Aevann1 87549f9d3c rename "#post-award-confetti" to "confetti" (minimalism autism" 2022-06-13 20:51:23 +02:00
Aevann1 8e8fd8c1da catch invalid ticket quantity 500 error 2022-06-13 20:34:57 +02:00