forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

4402 Commits (5b0b0f6ebb13d944152a87f6a7898661d7a8f639)

Author SHA1 Message Date
Aevann1 f6e6d07504 make me autoupvote dad's posts 2022-08-23 17:27:52 +02:00
Aevann1 8864748b6b increase block ratelimit from 10/day to 20/day 2022-08-23 17:24:54 +02:00
Aevann1 268216a537 Revert "make chat count 0 in localhost"
This reverts commit 4a111df278.
2022-08-23 17:18:59 +02:00
Aevann1 5aa03d87bb Revert "restore autoflush"
This reverts commit 687cd766b9.
2022-08-23 17:17:37 +02:00
Aevann1 53e7717dc9 fix @blackjackbtz 2022-08-22 23:05:01 +02:00
Aevann1 4a111df278 make chat count 0 in localhost 2022-08-22 23:02:20 +02:00
Aevann1 666b0cb063 comment betting code 2022-08-22 22:48:47 +02:00
Aevann1 b0321745df fix annoying chat bug (thx CRGD) 2022-08-22 22:47:01 +02:00
Aevann1 e2c6321b94 increase max ping limit for comments from 3 to 5 2022-08-21 22:17:55 +02:00
Aevann1 c0e9425015 make me not upvote posts in /h/racist 2022-08-21 19:47:59 +02:00
Aevann1 c70ea0eb64 boost informative holes with 3 extra autoupvotes 2022-08-21 19:14:03 +02:00
Aevann1 9dba3240c3 disallow adding ppl as mods to house holes if they're not members of that house 2022-08-21 18:02:01 +02:00
Aevann1 b5d500a98e add house holes 2022-08-21 17:24:16 +02:00
Aevann1 fb2437574f change ping_limit to be 3 for comments, and 50 for posts 2022-08-21 17:05:32 +02:00
Aevann1 350a6eb878 make me upvote /h/smuggies 2022-08-21 15:58:22 +02:00
Aevann1 f3c487f6de make me upvote /h/braincels instead of /h/foid 2022-08-21 15:14:44 +02:00
Aevann1 a36c0f9dd3 trying to fix exiling 2022-08-20 22:24:20 +02:00
Aevann1 b71d55cfb9 don't show jannies flairing in the modlog 2022-08-20 22:14:20 +02:00
Aevann1 adee122170 check nofollow in the backend 2022-08-20 21:50:18 +02:00
Aevann1 8c99bebd87 disallow brocels from disabling stealth mode 2022-08-20 21:41:58 +02:00
Aevann1 b60f46d0bf disallow /h/smuggies mods from disabling stealth mode 2022-08-20 21:41:15 +02:00
Aevann1 2006e56bfd do this https://rdrama.org/h/braincels/post/95884/attn-brocels/2548322?context=8#context 2022-08-20 15:57:31 +02:00
Aevann1 734844291c fix bug I introduced 2022-08-20 14:38:46 +02:00
Aevann1 d5b4818d61 trying to fix annoying bug 2022-08-20 14:32:19 +02:00
Aevann1 550299e6a1 make me upvote shit in chudrama 2022-08-20 13:59:29 +02:00
Aevann1 da4070b62a reduce chudrama requirement from 20k to 5k 2022-08-20 00:45:21 +02:00
Aevann1 e1e7258e7a add def can_see(v) 2022-08-20 00:36:28 +02:00
Aevann1 a88b9d59c4 rename /h/chudtopia to /h/chudrama 2022-08-20 00:20:25 +02:00
Aevann1 4a8220d687 make chudtopians immune to chud effects 2022-08-20 00:12:53 +02:00
Aevann1 9e5ddcbd92 large commit: stealth mode, SubJoin, chudtopia
dont read if u value ur sanity
2022-08-19 23:31:26 +02:00
Aevann1 e02756669b track awards granted by jannies 2022-08-18 22:10:58 +02:00
Aevann1 c29e5cdb5d adjust discord 2022-08-18 18:52:26 +02:00
Aevann1 5234c8ef21 remove weird spaes 2022-08-17 22:30:07 +02:00
Aevann1 7ee7868185 restore the ability to permachud someone, apparently that stings less than being chudded for a month/year (fascinating) 2022-08-17 21:17:34 +02:00
Aevann1 1d7b19f485 make "before" and "after" human-readable 2022-08-17 21:09:15 +02:00
Aevann1 05689c87f6 fix previous commit 2022-08-17 19:57:32 +02:00
Aevann1 687cd766b9 restore autoflush 2022-08-17 18:36:59 +02:00
Aevann1 a571ab3e69 limit my awards number to 100 2022-08-17 08:26:07 +02:00
Aevann1 c2ea38ec68 allow me to give more than 10 awards at a time 2022-08-17 08:24:59 +02:00
Aevann1 026d023c43 filter 2 slurs from pronouns 2022-08-16 18:16:04 +02:00
Aevann1 133508fc6a add "before" and "after" search keywords 2022-08-15 21:02:23 +02:00
Aevann1 863cf24b68 make max comment level 200 2022-08-15 20:11:41 +02:00
Aevann1 16626ceb4f reduce max notification depth from 50 to 10 2022-08-15 20:10:45 +02:00
Aevann1 8e48728614 add imginn toggle 2022-08-15 19:45:43 +02:00
Aevann1 4668073364 reset typing indictors on every message 2022-08-15 17:02:19 +02:00
Aevann1 3ac493aa95 exclude /h/smuggies from my autoupvote 2022-08-15 16:24:29 +02:00
Aevann1 0e6f9358dd adjust algo again 2022-08-15 16:16:35 +02:00
Aevann1 26f5e3e053 adjust WPD algo 2022-08-15 16:15:16 +02:00
Snakes 86bea72484
Refactor profile views condition to deduplicate. 2022-08-15 05:32:29 -04:00
Snakes c881e284b0
WPD: permit /views to non-patrons. 2022-08-14 17:01:04 -04:00
Aevann1 0fa6442846 change chat char limit again 2022-08-14 04:38:07 +02:00
Aevann1 58736f8616 increase num of messages in chat from 50 to 100 2022-08-13 13:08:38 +02:00
Aevann1 dd6f86ce31 fix online count 2022-08-13 12:05:27 +02:00
Aevann1 c4e5c8aefe reduce chat max char limit 2022-08-13 11:45:33 +02:00
Aevann1 b59056fd16 fix muting 2022-08-13 11:24:56 +02:00
Aevann1 38b5492b30 fix chat 2022-08-13 10:39:08 +02:00
Aevann1 9557553508 add chat users-online counter to chat icon on desktop header 2022-08-13 09:42:06 +02:00
Aevann1 53c495d25f do this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2412894?context=8#context 2022-08-13 09:08:32 +02:00
Aevann1 d0083b579f expand 593b74c969 + make AEVANN_ID default 0 2022-08-13 05:11:44 +02:00
Aevann1 cec08c9e55 increase charlimit for hole css 2022-08-13 01:07:49 +02:00
Aevann1 593b74c969 exclude me from modmail notifs in our sites 2022-08-13 01:06:19 +02:00
Aevann1 539188ed85 fix revert_actions 2022-08-13 00:55:44 +02:00
Snakes 12d7cfaa6c
Verify admin level before editing others' posts.
Yes, it has been possible for any user to edit any post on the site,
their own or otherwise. Only have to generate the POST /edit_post/
manually: an example exploit was created and tested successfully
prior to patching. However, abuse of this vulnerability would have
generated edit_post modlog entries, the lack of which on prod suggest
it was not abused that we know of -- Lord knows how.
2022-08-11 20:12:35 -04:00
Aevann1 26959e0751 murder deuxrama.net 2022-08-11 18:46:11 +02:00
Aevann1 ad8cb16bee notify chadmins of new holes 2022-08-11 15:25:56 +02:00
Aevann1 e7e8e80fb9 fix id links for loggedout users 2022-08-11 15:00:04 +02:00
Aevann1 d07556afc6 simplify comment spam detection 2022-08-11 12:28:45 +02:00
Aevann1 e8bfe7348f fix wordle not verifiying user 2022-08-11 10:15:41 +02:00
Snakes c15f07a186
Fix /blackjack/ not verifying user. 2022-08-11 03:50:07 -04:00
Aevann1 89e77a69ac sneed 2022-08-11 07:13:52 +02:00
Aevann1 1000f9c45e Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-08-11 06:05:26 +02:00
Aevann1 9341f2368a make some function names shorter 2022-08-11 06:05:23 +02:00
Aevann1 cfa17aaf68 rename some retarded ruqqus terminology 2022-08-11 06:04:41 +02:00
Aevann1 57cc579b30 try to fix 500 error caused by vote constraints 2022-08-11 06:03:09 +02:00
Aevann1 b79638b2dd fix 500 error in /revert_actions 2022-08-11 06:02:23 +02:00
Snakes 55c1ad859e
Disable showmore logic on posts. 2022-08-10 17:34:15 -04:00
Snakes 6a7a3b1821
Hide shadowed user content in more contexts.
- Search: posts by shadowed user.
  - Search: shadowed users in search for users.
  - Direct links to shadowed user posts display as removed.
  - Other users' profile comments listings hide comments on shadowed
    posts. Users can still see their own comments on shadowed posts.
    Similar to ghosted comment logic.
2022-08-08 18:21:59 -04:00
Snakes 1411018f8d Add post categories.
Implemented for LGB but can likely be used for WPD and other future
sites. Similar to a reddit post flair. Provides:
  - Admin panel for Category management.
  - Category selection on post submission.
  - 'Recategorize' post action.
2022-08-07 02:57:30 -04:00
Aevann1 2509861d27 change WPD server 2022-08-06 21:17:08 +02:00
Aevann1 eac3a72976 fix typo and remove deux redirect 2022-08-06 01:47:20 +02:00
Aevann1 8f08db39c5 delete reddit.css 2022-08-06 00:53:38 +02:00
Aevann1 f27a65f2dc fix issue with logged-in redirection for holes 2022-08-06 00:39:38 +02:00
Aevann1 14a00b5357 fix previous commit 2022-08-06 00:02:41 +02:00
Aevann1 2e3548eb77 remove modmail from my notifs (cancer) 2022-08-05 23:59:40 +02:00
Aevann1 0429da4493 mod action notifs rework 2022-08-05 23:50:30 +02:00
Snakes 2845e0961b Turn login-gate of 1568ec0162 into admin toggle. 2022-08-05 16:42:22 -04:00
Aevann1 ad3ca4eb12 increase max duration for chudding from 1 month to 1 year 2022-08-05 20:49:44 +02:00
Aevann1 3bc1ee583e make carp autoupvote posts in /h/foid 2022-08-05 20:47:33 +02:00
Aevann1 a8f62aecdb reserve app management to JL3 2022-08-05 20:45:43 +02:00
Aevann1 66088d5a5b Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-08-05 19:22:19 +02:00
Snakes 8b241a765a
Check URI approved embed in all CSS contexts. 2022-08-05 13:09:41 -04:00
Aevann1 2ec5531080 order themes alphabetically 2022-08-05 18:26:44 +02:00
Aevann1 3aab5240f3 fix 500 error 2022-08-05 17:29:40 +02:00
Aevann1 981692550f fix ping limiting being applies on all instances of "sanitize()" 2022-08-05 17:14:22 +02:00
scitzocel e68c2efb1b
sneed (#328)
* sneed

* schizosneed

soren

* Update posts.py
2022-08-05 05:52:03 -04:00
Aevann1 9a2b80e374 spam carp inbox 2022-08-04 23:20:29 +02:00
Aevann1 6087aebc78 make previous commit a little neater 2022-08-04 22:57:07 +02:00
Aevann1 84f4fc164d make chud editting less annoying 2022-08-04 22:54:24 +02:00
Aevann1 e286a2e881 spam carp inbox 2022-08-04 22:44:59 +02:00
Aevann1 1568ec0162 sneed 2022-08-04 22:33:22 +02:00
Snakes 73b71b2f44
PCM: disable repost detection. 2022-08-04 00:07:17 -04:00
Maximilian Ballard 3c506d768c
Redirect cuts off end of url for username redirect (#326)
* Redirect cuts off end of url for username redirect

username redirect cuts off end of url, For example:

Username: faygo_sucks
Old_username: geese_suck
Behavior:                 "https://rdrama.net/@geese_suck" -> "https://rdrama.net/@faygo_suck"
Expected Behavior: "https://rdrama.net/@geese_suck" -> "https://rdrama.net/@faygo_sucks"

* Update users.py
2022-08-03 01:09:35 +02:00
Aevann1 45753ee166 I hate programming 2022-08-01 21:37:57 +02:00
Aevann1 914c89c301 make deux redirection only happen in rdrama 2022-08-01 21:30:42 +02:00
Aevann1 e5a2980d1b normalizing request.full_path 2022-08-01 20:03:29 +02:00
Aevann1 85c4ff1621 make user search also user original_username for searching 2022-07-30 20:29:07 +02:00
Aevann1 f0816853da make ban_reason logic a little better 2022-07-30 00:43:25 +02:00
Aevann1 68c07b77bb move site_settings.json out of the repo 2022-07-30 00:14:25 +02:00
Aevann1 347604c433 make non-jannies unable to ping more than 3 ppl 2022-07-29 15:23:34 +02:00
Aevann1 f920371f3a fix this https://rdrama.co/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2395188?context=8#context 2022-07-29 02:43:22 +02:00
Aevann1 07be18cd1b fix 500 errors 2022-07-28 16:23:38 +02:00
Aevann1 8c4a4486a1 fix this https://rdrama.co/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2390057?context=8#context 2022-07-28 16:19:58 +02:00
DrTransmisia 856f155b41
Errorcodejihad (#323)
* formatmaxxing brained formatting

* formatmaxxing brained formatting: EPISODE 2

* Start implementing a .json interface for all logged users reddit-like

PROs:
- easier to debugmaxx applications
- good faith actors can scrap the site more easly :gigachadglow:
CONs:
- bad faith actors can scrap the site more easly :gigachadglow:
- jannitors lose a little of their power of allowlisting applications (they do it for free though)

anyways. I make this commit a separate commit so that Snakes can esclude it from the PR if he doesn't like it (cringe)

* /<username>/comments route now returns appropriate [citation needed] HTTP codes when called in JSON mode so that stupid JSON clients can crashmaxx

* More error codes (sorry I don't know how to squash)

* json endpoint. see other commit. I don't know how to squash
2022-07-24 11:03:19 -04:00
Aevann1 ed36803842 allow uppercase on pronouns 2022-07-23 14:41:49 +02:00
Aevann1 8621e68044 fix frontpage redirecting 2022-07-23 09:23:55 +02:00
Aevann1 ddeba62aeb fixing infinite redirections 2022-07-23 09:22:17 +02:00
Aevann1 de011ef7b1 testing on prod 2022-07-23 09:17:38 +02:00
Aevann1 8547e6b71d redirect permabanned-cels to deux 2022-07-23 09:07:57 +02:00
Aevann1 aa644fd208 allow a third pronoun if total character count is 11 or lower 2022-07-23 08:48:32 +02:00
Snakes 4723332e07
LGB: disable wordle. 2022-07-23 02:22:45 -04:00
Snakes a2ca535ce3
LGB: extend block & follower vis permissioning. 2022-07-19 22:29:45 -04:00
Snakes eb55a6cc01
LGB: disable country club. 2022-07-19 21:50:08 -04:00
Snakes b4fdf248ef LGB: disable profile bio, banner, song. 2022-07-19 21:20:52 -04:00
Snakes 3225a2a3d4
LGB: disable awards, badges. 2022-07-19 19:59:39 -04:00
Snakes 001caf0c98
LGB: Add static /kb/ route; two static pages. 2022-07-18 04:39:21 -04:00
Snakes eef6c25b0b
LGB: Permission block, follow, voters visibility. 2022-07-18 03:17:45 -04:00
Snakes 0c43deeee6
FEATURES: pronouns, kys, chat, house, /vote perm. 2022-07-18 02:43:20 -04:00
Snakes 8f7d05d62d
Refactor feature flags to dict.
In anticipation of adding about a dozen more features flags to support
work for LGB, PIN_ENABLED and PROCOINS_ENABLED have been moved to the
FEATURES dict in const.py. More generally looking to create a unified
interface for logically-related constants, perhaps to support e.g.
later moving these settings from hardcoded constants to data.
2022-07-18 01:10:01 -04:00
Aevann1 81b762fbc2 add a discord server for api users to help eachother 2022-07-18 02:46:46 +02:00
Aevann1 3ecde34fef hide blocked users from post notifs 2022-07-18 01:00:51 +02:00
Aevann1 034e8fa5eb increase max sidebar character count from 500 to 10k 2022-07-17 19:26:16 +02:00
Aevann1 fd87cb3ce2 remove linebreaks from future sigs 2022-07-17 19:24:58 +02:00
Aevann1 1088e38f34 order saved posts, comments and subscribed post by newest to oldest 2022-07-16 20:51:48 +02:00
Aevann1 5a2dc01990 modify new user message a little 2022-07-16 01:31:40 +02:00
Aevann1 de66243ea0 show marsey authors in deux 2022-07-15 03:25:04 +02:00
Aevann1 612ea7354b show marsey author in deux 2022-07-15 03:13:03 +02:00
Aevann1 48cbe8a6b1 allow ppl to revoke app authorizations 2022-07-15 02:12:54 +02:00
Aevann1 09da483bac dont reveal votes on polls in ghost threads 2022-07-15 01:21:52 +02:00
Aevann1 98e3e63547 order poll votes by time of creation 2022-07-14 16:47:03 +02:00
Aevann1 3f0d1ac2a7 make nuking message clearer 2022-07-14 15:28:07 +02:00
Snakes dfa700ab1a Deux: patch improper logins for post-seeding accs.
Deux's users were originally seeded from a clone of the rDrama DB.
Thereby, user IDs are paired between the sites, and this is further
the only clear means by which we can link accounts between the sites.
However, signups on either site after the seeding will not have
synchronized IDs. Newer accounts on Drama could thereby be used to
sign into the Deux account with the same user_id.

There's no clear way to solve this without going to a shared identity
provider for both. In the interim, we restrict shared login to users
from before divergence began. This is a kludge, but it works.
2022-07-14 03:00:08 -04:00
Snakes a217f76bad Deux: sidebar, sidebar thread; restrict holes. 2022-07-14 02:19:59 -04:00
Snakes 88108594ad Implement Deux login with rDrama challenge. 2022-07-13 20:36:04 -04:00
Aevann1 6689172013 fix pinning logic for holes 2022-07-13 23:20:56 +02:00
Aevann1 9e05f0a3b5 refactor changelog v2 2022-07-13 23:12:07 +02:00
Aevann1 86717e37b2 refactor changelog 2022-07-13 23:03:11 +02:00
Aevann1 c4499968ad make pins toggle sort-specific 2022-07-13 21:32:28 +02:00
Aevann1 3554ae8e7c re-allow notifs on admigger threads 2022-07-13 21:21:13 +02:00
Aevann1 ff4f423c2c testing on deux 2022-07-13 21:17:17 +02:00
Aevann1 4dc3c2d416 testing on deux 2022-07-13 21:14:59 +02:00
Aevann1 28119f1aa4 fix blocks 2022-07-13 20:48:04 +02:00
Aevann1 f5bacd8938 Revert "log ppl into deux automatically"
This reverts commit 86f7e627ea.
2022-07-13 20:33:31 +02:00
Aevann1 2d21863e19 replace "request.host" with "SITE" 2022-07-13 20:14:37 +02:00
Aevann1 86f7e627ea log ppl into deux automatically 2022-07-13 20:14:07 +02:00
Aevann1 5fb6bd86f9 remove "warm" sorting 2022-07-13 19:32:31 +02:00
Aevann1 b2de11cb1a add "pins" toggle to the frontpage 2022-07-13 19:31:35 +02:00
Aevann1 f6bf7400c3 do this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2298056?context=8#context 2022-07-13 17:20:10 +02:00
Aevann1 aa4ab5b217 sneed 2022-07-13 17:16:53 +02:00
Aevann1 f7c2befeed allow deux jannies to add badges 2022-07-13 14:56:30 +02:00
Aevann1 16fd7310c1 replace "sub" with "HOLE_NAME" 2022-07-13 11:13:42 +02:00
Aevann1 a088a6ec7b censor slurs on flairs 2022-07-12 22:09:59 +02:00
Aevann1 093c83d7c9 tweaking bannedfor column 2022-07-12 22:00:19 +02:00
Aevann1 077353c1f4 hide ghost posts from post notifications 2022-07-12 21:42:23 +02:00
Aevann1 bc927ef238 remove editing sidebar from PCM 2022-07-12 21:32:34 +02:00
Aevann1 2a95c25675 allow @bbbb to vote 2022-07-12 21:23:37 +02:00
Aevann1 afa2f68804 change pronouns required format from 1-5 to 2-5 2022-07-12 20:28:07 +02:00
Aevann1 ae45b45bfb refactor json again 2022-07-11 19:33:26 +02:00
Aevann1 bc4074f9aa fix api 500 errors 2022-07-11 19:19:48 +02:00
Aevann1 6428dd08c5 add pronouns 2022-07-11 18:46:08 +02:00
Aevann1 bf1fec7918 remove ban_reason when unbanning users 2022-07-11 14:35:28 +02:00
Aevann1 a7c49ca69a don't embed comments as posts 2022-07-11 13:55:15 +02:00
Aevann1 a9e355c804 sneed 2022-07-11 11:52:59 +02:00
Aevann1 9c3976a622 make new users follow carp automatically v2 2022-07-10 18:23:32 +02:00
Aevann1 d3b15e2b8a make new users follow carp automatically on rdrama 2022-07-10 18:13:16 +02:00
Aevann1 fecaed8223 fix mp3 songs getting cached 2022-07-10 17:43:27 +02:00
Aevann1 4e6c7fe683 don't notify on drafts 2022-07-10 16:34:11 +02:00
Aevann1 2a1efff78b repost new posts in WPD in discord 2022-07-10 16:25:42 +02:00
Aevann1 bb59cd0476 minor logic tweaks 2022-07-10 16:21:16 +02:00
Aevann1 0b7a5208e9 fix reddit mention bugs 2022-07-10 16:09:41 +02:00
Aevann1 9ea0f46250 tweaking offsite mentions a little 2022-07-10 15:02:24 +02:00
Aevann1 3cd0878d0a fix redirect bug 2022-07-10 14:09:03 +02:00
Aevann1 0ebd721884 fix WPD sorting 2022-07-10 12:07:11 +02:00
Aevann1 c214d4b7cc change sorting logic for WPD 2022-07-10 11:29:55 +02:00
Snakes fde2d5ca11 LGB: Use static default pfp. 2022-07-09 07:11:05 -04:00
Aevann1 f3fbb5c743 sneed 2022-07-09 13:07:43 +02:00
Aevann1 8590456eaa Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-09 12:32:52 +02:00
Aevann1 ec3b4357cf refactor sorting and time filter 2022-07-09 12:32:49 +02:00
Snakes 0fbb102929 Propagate shadows to new alts on signup. 2022-07-09 05:25:15 -04:00
Aevann1 382df30e1f show ALL timestamps in user's timezone + move scripts to the bottom of HTML templates to mimic rocketloader's behavior on localhost (for testing) 2022-07-09 10:35:47 +02:00
Aevann1 99f0cb7742 strip embed_url 2022-07-09 09:41:05 +02:00
Snakes 02e096e5af LGB: add custom emoji list. 2022-07-09 00:32:48 -04:00
Snakes 3416ed76e4 Increase rate-limit on /del_report/. 2022-07-08 20:46:44 -04:00
Aevann1 38f6a6f81d remove special timefilter condition for "bump" sorting 2022-07-08 21:49:27 +02:00
Aevann1 683c9c7bdd fix lingering notifications 2022-07-08 21:42:40 +02:00
Aevann1 f298d134ac make "clear all notifications" button also clear post notifs 2022-07-08 21:33:26 +02:00
Aevann1 65a98cd9fc dont show notifications for posts the user himself makes in a hole they follow 2022-07-08 21:14:04 +02:00
Aevann1 19ee55d27c fix post notifications not being visible 2022-07-08 21:11:56 +02:00
Aevann1 939861e1a0 fix 500 error 2022-07-08 21:10:01 +02:00
Aevann1 a8fe49f232 kitchen sink commit, all over the place 2022-07-08 21:03:04 +02:00
Aevann1 c380848d47 remove leftover code from ill-fated joinedload attempt 2022-07-08 20:28:56 +02:00
Aevann1 a64736d9fb get voting status on posts in /notifications/posts 2022-07-08 20:28:27 +02:00
Aevann1 9abd2cc508 dont show deleted and removed posts in /notifications/posts 2022-07-08 20:27:42 +02:00
Aevann1 ad1273995d notifications rework 2022-07-08 20:06:54 +02:00
Aevann1 cfa6c13eaa move 2 cron functions from routes files to .cron 2022-07-08 18:21:39 +02:00
Aevann1 83a931343e uncomment rss feed 2022-07-08 18:21:20 +02:00
Aevann1 b617321529 move all env-getting to .const 2022-07-08 18:21:13 +02:00
Aevann1 e34f1a1c15 Revert "testing bandwidth"
This reverts commit d6559471b7.
2022-07-08 17:13:37 +02:00
Aevann1 d6559471b7 testing bandwidth 2022-07-08 17:05:08 +02:00
Aevann1 c23366843e fix 500 error on posting 2022-07-08 14:40:07 +02:00
Aevann1 18385f80a1 make snappy only comment on drafts when they're published 2022-07-08 13:44:17 +02:00
Aevann1 b9d6f796a3 return 404 on shadowbanned comments when linking to them 2022-07-08 13:13:59 +02:00
Aevann1 747ccf5dab don't count deleted posts and comments 2022-07-08 13:07:27 +02:00
Snakes a3f94a77f3 Fix comment /votes/ 500 when no upvoters. 2022-07-07 19:53:28 -04:00
Aevann1 887d521f4a Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-07 07:14:41 +02:00
Aevann1 7cd1e4bf8f give chadmins marseybux 2022-07-07 07:14:39 +02:00
Snakes 6ad935e12a Permission flags UI visibility; start PERMS dict.
Original work started for WPD and LGB, who wish to restrict flags
visibility in the UI based on admin_level. To support this change and
upcoming changes, `const.PERMS: string -> int` was created.
Potentially targetting a future design where Permissions is a proper
business object integrated with the User model; however, for now just
looking toward getting admin_level magic numbers centralized.

This commit applies PERMS to: create_hole, flags visibility in UI,
flag removal in UI & backend. Flag visibility in Comment & Submission
json_raw methods is unaffected to avoid needing a user object to
build the JSON.
2022-07-06 23:45:33 -04:00
Aevann1 470b046702 compile regext outside of routes 2022-07-06 13:49:13 +02:00
Aevann1 4ba413eaa9 Revert "Revert "remove all joinedload bullshit I added""
This reverts commit 4057711c83.
2022-07-06 13:08:11 +02:00
Aevann1 742a3698ea fix my vote being above OP's vote 2022-07-06 13:00:28 +02:00
Aevann1 4057711c83 Revert "remove all joinedload bullshit I added"
This reverts commit c8d5eb0f57.
2022-07-06 12:58:44 +02:00
Aevann1 364c8eca4f Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-06 12:56:43 +02:00
Aevann1 05b70969e5 trying to fix WPD's issue 2022-07-06 12:56:39 +02:00
Snakes 95f9fbfab1 Add searching for "exact phrases" to search. 2022-07-04 04:19:41 -04:00
Aevann1 67dff25a5a fix previous commit 2022-07-04 09:05:14 +02:00
Aevann1 c8d5eb0f57 remove all joinedload bullshit I added 2022-07-04 09:04:14 +02:00
Aevann1 09be0394cd fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2244925?context=8#context 2022-07-04 06:07:51 +02:00
Aevann1 1136683a14 actually fix the followers pages 2022-07-04 05:41:44 +02:00
Aevann1 4ccead8439 Revert "refactor "view more comments""
This reverts commit 68da93ec02.
2022-07-04 05:37:48 +02:00
Aevann1 9d0b53ad54 fix /followers and /following being empty 2022-07-04 04:59:24 +02:00
Aevann1 ed02d7572a rename "frontpage" to "main feed" in move_hole mod action 2022-07-04 04:54:03 +02:00
Aevann1 35e2e12e24 OPs can now rehole their posts 2022-07-04 04:19:43 +02:00
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
Snakes ed42f14a77 Fix frontlist failing on pin expiry.
Proximate cause of 500 error on frontpage is that `Query` has no
such method `remove(...)`. Merely removing the line can't guarantee
identical logic, but I'm not quite clear if explicit removal from the
Query pseudo-collection is necessary, or if the final `pins` variable
after `Query.all()` will be appropriately filtered. It appears to
work right in practice, and the risk of expired pins persisting for
one extra pageload for only one user seems relatively minor.
2022-07-03 13:04:13 -04:00
Aevann1 a6b7fed2fc minor logic change in /@username 2022-07-03 14:12:33 +02:00
Aevann1 9607cb7a55 fix 500 error 2022-07-03 13:58:46 +02:00
Aevann1 ed86ec1c14 more query optimization v3 2022-07-03 13:56:40 +02:00
Aevann1 72884713ac more quert optimization 2022-07-03 13:21:58 +02:00
Aevann1 eef026be1e don't query comments we won't use 2022-07-03 12:20:43 +02:00
Aevann1 68da93ec02 refactor "view more comments" 2022-07-03 11:11:18 +02:00
Aevann1 1f0f0ef0be messing with joins 2022-07-03 08:12:53 +02:00
Aevann1 c8b4838157 unmessing with queries 2022-07-03 06:34:29 +02:00
Aevann1 91951ed142 messing with relationships 2022-07-03 06:27:48 +02:00
Aevann1 6c5b5a5314 add a "subscribed" tab in ur profile page to show posts u subscribed to 2022-07-03 04:43:49 +02:00
Aevann1 ab2d9b492d add "warm" sorting - exact same as hot but pinned posts are shown in their normal positions instead of the top 2022-07-03 04:40:57 +02:00
Snakes 33815d8365 Add badge for Checkmark award users. 2022-07-02 21:34:32 -04:00
Aevann1 bce4c13043 kitchen sink commit, all over the place 2022-07-02 12:44:05 +02:00
Aevann1 a37e6cc50f upvote more holes 2022-07-02 12:03:10 +02:00
Aevann1 b0d4465183 add child comments to joinedload 2022-07-02 11:59:26 +02:00
Aevann1 7cb95ee2ca delete migration cod 2022-07-02 11:58:16 +02:00
Aevann1 667a195270 migrating 2022-07-02 11:52:18 +02:00