Commit Graph

1232 Commits (999205c638d860a5d5786975fd7092f1d7bde4d7)

Author SHA1 Message Date
Aevann f69d73d82d do this https://rdrama.net/post/170459/paypigs-poll-on-tier-badges 2023-05-15 01:24:13 +03:00
Aevann 460a9a686a show tier name in tooltip + standardize patron constants 2023-05-15 01:17:22 +03:00
Aevann 3287053ab3 clearer leaderboard titles and whatnot 2023-05-14 03:13:40 +03:00
Aevann e52fd57141 Add marseybux leaderboard 2023-05-14 02:23:09 +03:00
Aevann d0f07a781b fix leaderboard description 2023-05-14 02:06:55 +03:00
Aevann 864f770762 add namelock award 2023-05-13 07:53:14 +03:00
Aevann 6eff7abe49 replace "bots" with "BOT_IDs" 2023-05-13 01:29:34 +03:00
Aevann f3a3be1ef2 add lifetime_donated badges 2023-05-13 00:04:26 +03:00
Aevann 586bd02db0 remove unnecessary entries 2023-05-12 23:33:50 +03:00
Aevann 1d1f3d1a3b dont give me modmail notifs on WPD (if its important they'll tell me) 2023-05-12 22:37:26 +03:00
Aevann 519fbef9a7 rename dm_images to dm_media 2023-05-12 18:27:46 +03:00
Aevann f1275793e7 minor fix to annoying unique constraint errors 2023-05-10 19:30:47 +03:00
Aevann 3699aa5b84 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4113483#context 2023-05-09 23:39:30 +03:00
Aevann c5d1662566 same as prev commit 2023-05-07 21:35:11 +03:00
Aevann d3cf9a6116 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4106096#context 2023-05-07 21:25:37 +03:00
Aevann f3a0080698 remove useless tabs 2023-05-06 00:47:07 +03:00
Aevann 92f0154e67 use new pagination system everywhere it isnt used 2023-05-06 00:47:07 +03:00
Aevann c87242270b fix this https://rdrama.net/h/meta/post/168273/toggle-pins-button-no-longer-works 2023-05-05 22:14:58 +03:00
Aevann 60ecfbd65b use new pagination system in /followers and /following 2023-05-05 09:01:14 +03:00
Aevann af74a752ad use new pagination system in /@<username>/blockers 2023-05-05 08:57:02 +03:00
Aevann d9aeb1f111 dedup page defining 2023-05-05 08:23:59 +03:00
Aevann 7a4c2a1091 fix 500 error 2023-05-05 04:40:30 +03:00
Aevann 5d1737c16c use new pagination system in profile views 2023-05-05 04:08:40 +03:00
Aevann 74bc00199d implement new pagination system in profile pages 2023-05-05 04:04:07 +03:00
Aevann 0dc8b5ccb1 don't use pomf for DM images anymore and allow for video and audio in DMs 2023-05-05 00:52:37 +03:00
Aevann cd089f2445 don't cache profile song redirect 2023-05-04 22:24:47 +03:00
Aevann 2d5a1ad95e delete the holes filter button 2023-05-04 19:48:30 +03:00
Aevann 9c64b891e5 revise my exceptions 2023-05-04 19:24:40 +03:00
Aevann f5a97ae709 add new patron tier for benefactor-cels 2023-05-03 18:29:31 +03:00
Aevann 744c95f7ca lock user profiles from logged-out-cels 2023-05-03 17:50:42 +03:00
Aevann f1c66a31e3 add P̵͇̕S̶̔̇Ȳ̴͙C̶͋͗H̵͒̉O̴̎̍ tier to WPD 2023-05-02 22:27:39 +03:00
Aevann 8ef54cb720 fix 500 errors 2023-04-29 15:33:29 +02:00
Aevann b46bd80c97 move location in /kofi 2023-04-28 12:02:10 +02:00
Aevann 58ea68306a more accurate created_utc from gumroad tx 2023-04-27 18:17:00 +02:00
Aevann 9ad113fdaa print gumroad webhook data for testing 2023-04-27 18:09:50 +02:00
Aevann c50d97a343 print kofi IP 2023-04-27 18:09:19 +02:00
Aevann 3576dec07f dont ratelimit /gumroad and /kofi 2023-04-27 17:54:42 +02:00
Aevann 507924b8a3 fix modmail replies not generating notifs and unread modmail replies being collapsed and not being highlighted 2023-04-25 13:48:25 +02:00
Aevann b952de3cee restore "downvotes received" leaderboard 2023-04-25 11:50:47 +02:00
Aevann bde4b10813 put "upvotes given" at the bottom 2023-04-25 11:38:42 +02:00
Aevann 8f7a0bc4e7 restore upvotes given leaderboard (testing on dev.rdrama.net) 2023-04-25 10:59:26 +02:00
Aevann a37fca393d combined buy button for awards and hats 2023-04-24 17:08:40 +02:00
Aevann c4263c9439 fix prev commit 2023-04-02 10:04:32 +02:00
Aevann 5bc6597188 add 1/1 second ratelimiter for user ids to fix blackjack exploit 2023-04-02 08:52:26 +02:00
Aevann 96330210e8 use SITE as a prefix for flask_cache 2023-03-25 22:57:27 +02:00
Aevann 6e713ca930 revert the new comments system 2023-03-25 20:25:38 +02:00
Aevann f0ab7f7490 claim the paypig awards on the highest truescore account of accounts using the same email 2023-03-25 15:29:32 +02:00
Aevann 4ecb552169 comments overhaul 2023-03-24 18:30:27 +02:00
Aevann e1e05c799d dont barf up the whole comment chain when clicking "more comments" in /@<username>/comments 2023-03-24 18:09:12 +02:00
Aevann 71b97c1a15 check for existing in /gumroad 2023-03-23 15:33:57 +02:00
Aevann 28b4f07493 minor syntax change 2023-03-23 15:25:44 +02:00
Aevann dab55d53c9 make sure all votes are there in /@<username>/comments 2023-03-22 22:14:12 +02:00
Aevann afdf3ebc78 fix 500 error for loggedout-cels 2023-03-22 21:55:24 +02:00
Aevann 1971dc1b73 improve /@<user>/comments 2023-03-22 21:53:59 +02:00
Aevann 177ed092d0 use set in /<user>/comments (doesnt rly matter i just have OCD) 2023-03-22 21:40:04 +02:00
Aevann 5b8da52ab8 fix duplicate comments in /@<user>/comments 2023-03-22 21:39:50 +02:00
Aevann 5b61df70a6 fix last comment 2023-03-22 19:11:04 +02:00
Aevann 3e122bbd59 show parent comment in /@username/comments 2023-03-22 19:02:04 +02:00
Aevann dd54413cf3 convert marsey submission form to include all emojis 2023-03-18 15:34:04 +02:00
Aevann 57765f0776 revert sqlalchemy changes 2023-03-16 08:27:58 +02:00
Aevann a392fbb86d restore autoflush 2023-03-16 06:21:57 +02:00
Aevann c6a7051200 flush instead of committing inside requests 2023-03-15 07:19:35 +02:00
Aevann f768d81103 keep db sessions open 2023-03-15 05:58:00 +02:00
Aevann 096fb962f1 remove notify_jannies_of_grooming 2023-03-15 04:20:56 +02:00
Aevann bd2355007c remove retarded ratelimit 2023-03-13 21:26:38 +02:00
Aevann 0f62958024 minor fix 2023-03-12 10:31:17 +02:00
Aevann ccf6ccd468 same as last commit 2023-03-11 11:50:29 +02:00
Aevann 2ed9571176 fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3754221#context 2023-03-10 04:21:57 +02:00
Aevann 77e7663476 remove leftover shit 2023-03-08 08:01:53 +02:00
Aevann 56fe72d294 better tier logic in claim_rewards 2023-03-07 16:22:25 +02:00
Aevann 2ac830467b use STARS const 2023-03-06 22:49:01 +02:00
Aevann 0c91650a1d remove jc insanity 2023-03-06 00:50:06 +02:00
Aevann 01f671d19a remove the .json endpoints 2023-03-03 03:53:04 +02:00
Aevann 117624f313 add session["GLOBAL"] 2023-03-02 22:29:22 +02:00
Aevann 82af0d4528 fix not being able to see ur own replies in DMs 2023-02-28 22:52:43 +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: #135
2023-02-27 15:38:12 +00:00
Aevann 668499846b try to fix mbux bug 2023-02-27 17:02:45 +02:00
Aevann 9559c6e93a hide ghosts in push notifs 2023-02-27 15:35:53 +02:00
Aevann 17bb6dad48 blackjack fix exploit 2023-02-27 07:33:45 +02:00
Aevann 9a618508f7 consistency 2023-02-27 02:48:19 +02:00
Perjury 20bbc9ff24 Pointless bullshit checks for people who like to use mitmproxy a bit too much (#134)
Does it do anything meaningful? No
Does it do anything harmful? No
Did I test it? uhhhhhm

Co-authored-by: Perjury <perjury@sabotaged.email>
Reviewed-on: #134
Co-authored-by: Perjury <perjury@noreply.fsdfsd.net>
Co-committed-by: Perjury <perjury@noreply.fsdfsd.net>
2023-02-27 00:47:51 +00:00
Aevann 6ac9b32834 allow positioning of files 2023-02-26 14:08:37 +02:00
Aevann fe0b8887bc change 1/second ratelimit to 1/2 second 2023-02-26 12:26:26 +02:00
Aevann 3a07858639 revert back from \n to \n\n for easier to read source and making linefeeds work when theres <pre> or ``` 2023-02-26 12:20:32 +02:00
Aevann 8085fa3351 make modmail appear in /search/messages 2023-02-26 11:22:42 +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 4c35f0b07f remove unnecessary line 2023-02-26 08:35:59 +02:00
Aevann 7aaeedea36 better ratelimiting 2023-02-26 03:42:39 +02:00
Aevann db7cb3d415 fix 500 error 2023-02-26 00:07:26 +02:00
Aevann 0a8bb14c64 try not limiting push notifs body size and see what happens 2023-02-25 20:16:28 +02:00
Aevann 112ef66616 fix posts link in leaderboard 2023-02-24 05:58:28 +02:00
Aevann 2caf9a9faf remove redundant if condition 2023-02-24 03:47:50 +02:00
Aevann 52a63fbba3 restore modmail notifs for myself 2023-02-24 01:25:47 +02:00
Aevann abe61d41af restores simps and haters for comments and /voted/comments 2023-02-22 19:30:09 +02:00
Aevann a395c18955 remove unnecessary tabs 2023-02-22 19:27:33 +02:00
Aevann e2206278a1 Revert "Revert "routes: added various per-app exclusions (#128)""
This reverts commit f4a4b5f7be.
2023-02-21 16:51:22 +02:00
Aevann f4a4b5f7be Revert "routes: added various per-app exclusions (#128)"
This reverts commit 4e52488b35.
2023-02-20 18:06:51 +02:00
mummified-corroding-granny 4e52488b35 routes: added various per-app exclusions (#128)
Kindly,

Why (at least on WPD):
* /marseys results in a 500 (balls-deep)
* /worldcup... and /directory are empty pages
* /toggle_holes results in almost all posts getting removed from the front page in the perspective of the logged-in user

Thanks,
granny

Reviewed-on: #128
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-20 14:40:21 +00:00
Aevann cff77f21e3 fix for future messages 2023-02-19 22:02:13 +02:00
Aevann 8449981617 minor fix 2023-02-09 08:24:03 +02:00
Aevann db64174b80 remove unnecessary print statement 2023-02-09 05:52:51 +02:00
Aevann 88814ee208 expand blackjack 2023-02-07 05:31:49 +02:00
Aevann 38183e05fb fix granny bug 2023-02-06 07:42:11 +02:00
Aevann ed41a660fb make gumroad warnings more prominent 2023-02-06 05:39:44 +02:00
mummified-corroding-granny fd613097b3 Improve page titles in some profile-related pages (#113)
Kindly,

As per title

granny

Reviewed-on: #113
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-06 03:23:15 +00:00
Aevann b772cf12fe minor change to print statement 2023-02-03 05:05:16 +02:00
Aevann 6e389bccc7 reduce print statements 2023-02-02 22:13:22 +02:00
Aevann db5bc5c9ec fix 500 error 2023-02-02 22:09:08 +02:00
Aevann c5634cac78 fix automatic patron rewards 2023-02-02 21:28:23 +02:00
mummified-corroding-granny b0797c4493 fix-small-tisms that I had piled up in my todo (#109)
fix-small-tisms that I had piled up in my todo

Reviewed-on: #109
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-02 16:54:52 +00:00
Aevann 235fb21674 more print statements 2023-02-02 18:47:52 +02:00
Aevann 6ef6d06984 same as last commit 2023-02-02 06:16:54 +02:00
Aevann 6a53fa2063 add some print statements to claim_rewards 2023-02-02 06:14:09 +02:00
Aevann 3efa1dfb04 remove unnecessary timeouts in cache.memoize 2023-02-02 02:42:47 +02:00
Aevann 06a70f7fd7 refactor donation code 2023-02-01 21:49:39 +02:00
Aevann b7e4f27f65 use transactions table in rdrama 2023-02-01 21:04:15 +02:00
Aevann b0832d9ef6 update marseybux message 2023-02-01 20:41:52 +02:00
Aevann a01ba9234d re-disable /voted/comments 2023-01-29 15:47:13 +02:00
Aevann e57021026b restore /voted/comments 2023-01-28 16:37:32 +02:00
Aevann cd573133a9 fix images in modmail 2023-01-28 10:47:52 +02:00
Aevann 3b4211e8e1 stop using nullslast #102 2023-01-28 10:25:19 +02:00
Aevann 895b3a5b7b fix 500 error 2023-01-27 16:03:19 +02:00
Aevann 2795f55857 fix /gumroad 2023-01-27 15:33:09 +02:00
Aevann c45cd0fde8 make a UI for /admin/dm_images 2023-01-27 14:24:39 +02:00
Aevann 349fa17836 use exlamation marks instead of dots in responses to users 2023-01-27 13:57:29 +02:00
Aevann 21dd678c2d restore simps and haters but exclude comment votes 2023-01-27 10:59:36 +02:00
Aevann 2854599ed5 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3489058#context 2023-01-27 10:19:36 +02:00
Aevann f62a0c075a minor fix to /gumroad 2023-01-27 07:20:35 +02:00
Aevann d00fef9faf use transactions table in rdrama (#99)
Co-authored-by: Aevann <randomname42029@gmail.com>
Reviewed-on: #99
2023-01-26 11:25:28 +00:00
Aevann c4d3234988 make can_see give 403 error instead of 404 2023-01-25 12:59:45 +02:00
Aevann 167b04543c exclude jannoids from profile views 2023-01-25 05:45:23 +02:00
Aevann ca1b716010 fix pfp caching 2023-01-25 05:18:17 +02:00
Aevann b23dc76d78 fix muting linking alts 2023-01-25 04:53:52 +02:00
Aevann b1b7393f11 disable more slow enddpoints 2023-01-24 13:25:04 +02:00
Aevann 9ad4cf8035 add exclamation mark 2023-01-23 12:30:34 +02:00
Aevann f277b9ab8a more kofi shit 2023-01-23 12:26:47 +02:00
Aevann 9074c68c57 testing kofi 2023-01-23 12:19:32 +02:00
Aevann 8396126606 add dm images 2023-01-23 11:58:38 +02:00
Aevann d34f836052 make patron rewards automatic in WPD 2023-01-23 10:42:38 +02:00
Aevann 6fb5f7e552 disable slow endpoing 2023-01-23 02:43:15 +02:00
Aevann 57fdc74a43 disable 2 other endpoints temporarily on rdrama 2023-01-22 02:01:48 +02:00
Aevann e3fc980984 order /banned and /admin/shadowbanned by ban reason 2023-01-21 07:50:48 +02:00
Aevann a40dee5bd8 improve user ratelimiting 2023-01-21 06:39:46 +02:00
Aevann dd3dfa5197 make users list viewable by everypony 2023-01-01 16:52:16 +02:00
Aevann 498db92dd9 fix custom css 2023-01-01 15:03:55 +02:00
Aevann 044664a25e get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
Aevann d0874f614b background improvements 2023-01-01 11:59:29 +02:00
Aevann e30d3649f1 setting fixes 2023-01-01 11:42:23 +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 93e9a42fa3 stop using inline style/script elements 2022-12-29 16:20:27 +02:00
Aevann 909e3f5f29 use a cool flask feature i didnt know about 2022-12-29 12:39:10 +02:00
Aevann f7aa7d8dfd better error messages 2022-12-28 11:50:48 +02:00
Aevann d5eed41992 dont notify me of my own modmail message 2022-12-26 02:14:47 +02:00
Aevann c4e4a8d853 give jannies push notifs for chat 2022-12-25 22:30:50 +02:00
Aevann 38247317fd fix DMs 2022-12-24 01:07:51 +02:00
Aevann a63b02470d use sets with in statements 2022-12-24 00:22:41 +02:00
Aevann 5d6d108dd5 remove redundant domain bans 2022-12-23 00:25:31 +02:00
Aevann a54734c32f better caching for get_alt_graph 2022-12-22 23:24:36 +02:00
Aevann 92cbe64ac0 cache get_alt_graph for 1 hour 2022-12-22 22:44:37 +02:00
Aevann1 837000505f remove DONT_LINK_ALTS in favor of DONT_SHADOWBAN 2022-12-22 00:38:12 +02:00
Aevann1 697e7d60b0 same as last commit but for @jimjones 2022-12-22 00:23:24 +02:00
Aevann1 49cae21709 prevent LLM alts from being linked with him 2022-12-22 00:19:14 +02:00
Aevann1 98b427e3a2 prevent DDOS 2022-12-21 22:14:33 +02:00
Aevann1 745e741d95 remove most env defaults (i dislike them, cope and sneeze) 2022-12-21 15:09:23 +02:00
Aevann1 90d5399de1 2fa minor change 2022-12-20 23:20:32 +02:00
Aevann1 e6e8fa0d1a dont link any alts to boo's main account 2022-12-19 22:20:57 +02:00
Aevann1 6cde4a040c make ?context=8 default 2022-12-18 16:48:48 +02:00
Aevann1 173f9e9853 fix push notif title 2022-12-16 20:06:00 +02:00
Aevann1 bd8ac649d4 order punished listings by truescore instead 2022-12-15 20:31:58 +02:00
Aevann1 df804c3179 minor change to punished listings 2022-12-14 15:12:02 +02:00
Aevann1 b923776e71 simplify punished listings 2022-12-14 00:29:56 +02:00
Aevann1 c10c00473a make is_banned fkey on user id 2022-12-14 00:02:53 +02:00
Aevann1 b531d38384 small change to punish listings 2022-12-13 20:54:18 +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: #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 a0f5cc8dfb allow ppl to see and post on walls of private profiles (per poll) 2022-12-10 17:01:58 +02:00
Aevann1 5e52a86500 cleanup user ids in const.py 2022-12-10 16:00:03 +02:00
Aevann1 52f5b2a347 serve almost all files from nginx 2022-12-10 14:21:52 +02:00
Aevann1 b2591daa2b filter 0 truescore from punishment listings 2022-12-10 10:57:48 +02:00
Aevann1 45be6970d6 punished users listing fixes 2022-12-10 10:23:56 +02:00
Aevann1 0e7973a676 minor fix for /grassed 2022-12-10 10:11:11 +02:00
Snakes 39a0832223
Sort banned, chudded, etc listings by activity.
The listings of users affected by jannied states are long. To make
them more useful, sort by recent user activity (when v is allowed to
view last_active) to know which accounts are still in use.
2022-12-09 23:47:31 -05:00
Snakes d4b822b956
Amend 3e8c98494f: shadowbanned isn't a bool. 2022-12-08 23:06:21 -05:00
Snakes 25b5675ac4
Amend PR 52, 53: standardize style, basedbot bug 2022-12-08 22:48:40 -05:00
justcool393 f848f68799 walls: remove duplication among routes/templates (#52)
removes a bunch of duplicated code in commenting and userpages

Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #52
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-09 03:35:28 +00:00
justcool393 3e8c98494f shadowbans: don't include in voting pages 2022-12-08 20:47:11 +00:00
Aevann 81267ef1c6 do this https://stupidpol.site/h/countryclub/post/79285/tired-of-some-cute-twink-jannies/3194721?context=8#context (#53)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Reviewed-on: #53
2022-12-07 16:51:51 +00:00
Aevann1 8101e7d91b fix 500 errors 2022-12-05 17:16:11 +02:00
Aevann1 847385ad87 fix https://stupidpol.site/h/changelog/post/128866/changelog-added-profile-walls-profile-views/3188365?context=8#context 2022-12-05 16:51:50 +02:00
Aevann1 2b7f7cef1b fix marking read from push notifs 2022-12-05 16:38:24 +02:00
Aevann1 c0169d0dab fix voting on profile wall 2022-12-05 08:18:37 +02:00
Aevann1 af3b028ca5 add links to individuals comments in walls + fix awards for wall comments 2022-12-05 05:01:50 +02:00
Aevann1 8d64804724 fix wrong username direct 2022-12-05 03:33:43 +02:00
Snakes 2057c48ebd
Fix userpage walls for logged-out viewers. 2022-12-04 20:23:48 -05:00
Aevann1 cb4d941fd0
add profile wall 2022-12-04 20:05:45 -05:00
Aevann1 36c69cca0a kofi - only change patron tier when its a supscription 2022-12-04 00:51:52 +02:00
Aevann 5c2dab73c7 stop using pusher (#37)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: #37
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-02 22:21:18 +00:00
Aevann1 45a36ed726 kofi - order_by not needed anymore 2022-12-01 03:26:47 +02:00
Aevann1 6e6bd81872 better kofi claiming 2022-12-01 03:24:41 +02:00
justcool393 0106a4e340 antispam: under siege mode 2022-11-30 11:37:35 -06:00
Aevann1 1475383549 fix stray piece of code i used in testing 2022-11-28 03:50:00 +02:00
Aevann1 73a78f0e97 add pagination to simps/haters/simps for/hates lists and remove loop.index 2022-11-28 03:45:20 +02:00
Aevann1 d0047dcc5a include users who have more than 30 days to be unbanned/unchhuded in /banned and /chuds for accountability 2022-11-28 03:32:01 +02:00
Aevann d45fd6e645 fix designed hats being duplicated 2022-11-27 03:45:28 +02:00
Aevann1 4e4e649dc9 remove carp exception in /followers since we have pages now 2022-11-27 03:27:06 +02:00
Aevann1 a46b62db0b add pages to /followers /following /blockers and order them all by most recent first 2022-11-27 02:59:20 +02:00
Aevann1 395e136cd4 order user blocks by most recent first 2022-11-27 02:36:09 +02:00
justcool393 ffb79a1bb2 literally one line lmao 2022-11-26 18:33:55 -06:00
Aevann1 a44bc53f3a limited designed hats loserboard to rdrama.net 2022-11-27 02:27:33 +02:00
Aevann1 575a5080bd unpaywall profile views 2022-11-27 02:20:54 +02:00
justcool393 0ff034b01b add typing to a bunch of routes 2022-11-26 15:00:16 -06:00
Aevann1 a641acaf8f use sets instead of lists in some statements 2022-11-26 06:52:47 +02:00
Aevann1 642d19b861 move ratelimit_user after auth 2022-11-26 01:37:04 +02:00
justcool393 f86d351ac4 fix saved subscribers stuff 2022-11-25 16:06:18 -06:00
Aevann1 2938f930fd make me not see modmail, if its important the other jannies will tell me 2022-11-25 22:56:11 +02:00
Aevann1 e198102383 repurpose "upvoted" to "voted" 2022-11-22 23:28:30 +02:00
justcool393 272e2ee936
sneed (rename procoins to marseybux) (#472)
* sneed (rename procoins to marseybux)

* literally unusable

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 18:08:29 -05:00
justcool393 427d8f643d ratelimiting: use ratelimit_user everywhere 2022-11-21 09:30:27 -06:00
justcool393 153fb4e2a2
[DO NOT MERGE] titlesssssssssss (#468)
* titles

* testing

* self

* Revert "self"

This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5.

* Revert "testing"

This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0.

* testing on devrama

* rewrite the html head

* reference error or smth idk

* tempalte debug

* template debug redux

* default2

* rename default2 -> root, page title

* fix settings2

* include the set_variables block

* root scope variables 2

* test 3

* remove unnecessary set

* add pagetitles to all settings2 pages

* add pagetitle to casino

* remove bloat

* remove duplicate site name thingy

* page titles 2

* page titles 3

* remove duplicate imports and add page titles everywhere iirc

* ok but actually this time

* remove unnecessary newlines

* fix title lol

* >

* fsdfsfsfsfsfs

* fsfs

* template configurations

* fix 500

* reduce login template bloat

* move files and add status codes where needful

* move authfroms to login

* remove 2fa bloat

* verification code

* sign up fixes

* readability

* fssfsfsfs

* move forgot password to login/

* readability

* don't emit comments

* add page titles where needful

* gsgsgs

* modals: move to respective pages

* testing on devrama

* get home garbage out of title

* remove insane amount of icon duplication

* sign up text

* add votes pagetitle

* fix blank lines

* Revert "fix blank lines"

This reverts commit b2c54339970725d00b6fc82bb458c1757909952c.

* Fix blank lines on sign_up.html.

* title: votes.html more meaningful identifier.

* titles: Lottery, Directory, Notifications

* head final in submission.html

* fix missing comma

* >

* test

* title: /comments

* fsfsfsfsf

* titles: user_cards

* head: only load video and audio meta attributes if they actually exist

* titlessssss: /admin/lottery/participants

* titlessssssss: extra quote in search.html

* titlessssss: userpage voters.

* titties: /h/<sub>/{followers,blockers,exilees[sic]}

* test banner

* Revert "test banner"

This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826.

* make submit.html inherit from default.html

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 02:52:22 -06:00
Aevann1 6b7b2ff59a show only permachudded users in /chuds 2022-11-20 19:37:45 +02:00
Snakes db329f487f
User.pay_account everywhere, fix lottery payout. 2022-11-20 05:50:02 -05:00
justcool393 255d5b2453 security: fix mute bypass
modmail: constantify user ID
2022-11-17 16:50:06 -06:00
justcool393 5b03c2535a kofi: fix rare 500. don't attempt to activate via kofi on sites where it's not enabled
this can cause a weird 500
2022-11-17 13:55:07 -06:00
justcool393 8414cec5d5 kofi: don't let "blahblahblah" be considered a valid token 2022-11-17 11:12:32 -06:00
justcool393 3d7737387c use default config vlaue const everywhere 2022-11-15 10:55:00 -06:00
Snakes 604321512e
Fix userpage listing sort order (merge error?). 2022-11-15 05:40:16 -05:00
justcool393 4b9c702877 fix listing bugs 2022-11-15 03:28:39 -06:00
justcool393 8f2f48d6d1
[DO NOT MERGE] import detanglation (#442)
* move Base definition to files.classes.__init__.py

* fix ImportError

* move userpage listing to users.py

* don't import the app from classes

* consts: set default values to avoid crashes
consts: warn if the secret key is the default config value

* card view: sneed (user db schema)

* cloudflare: use DEFAULT_CONFIG_VALUE

* const: set default values

* decouple media.py from __main__

* pass database to avoid imports

* import cleanup and import request not in const, but in the requests mega import

* move asset_submissions site check to __init__

* asset submissions feature flag

* flag

* g.is_tor

* don't import request where it's not needed

* i think this is fine

* mail: move to own routes and helper

* wrappers

* required wrappers move

* unfuck wrappers a bit

* move snappy quotes and marseys to stateful consts

* marsify

* :pepodrool:

* fix missing import

* import cache

* ...and settings.py

* and static.py

* static needs cache

* route

* lmao all of the jinja shit was in feeds.py amazing

* classes should only import what they need from flask

* import Response

* hdjbjdhbhjf

* ...

* dfdfdfdf

* make get a non-required import

* isort imports (mostly)

* but actually

* configs

* reload config on import

* fgfgfgfg

* config

* config

* initialize snappy and test

* cookie of doom debug

* edfjnkf

* xikscdfd

* debug config

* set session cookie domain, i think this fixes the can't login bug

* sdfbgnhvfdsghbnjfbdvvfghnn

* hrsfxgf

* dump the entire config on a request

* kyskyskyskyskyskyskyskyskys

* duifhdskfjdfd

* dfdfdfdfdfdfdfdfdfdfdfdf

* dfdfdfdf

* imoprt all of the consts beacuse fuck it

* 😭

* dfdfdfdfdfdfsdasdf

* print the entire session

* rffdfdfjkfksj

* fgbhffh

* not the secret keys

* minor bug fixes

* be helpful in the warning

* gfgfgfg

* move warning lower

* isort main imports (i hope this doesn't fuck something up)

* test

* session cookie domain redux

* dfdfdfd

* try only importing Flask

* formkeys fix

* y

* :pepodrool:

* route helper

* remove before flight

* dfdfdfdfdf

* isort classes

* isort helpers

* move check_for_alts to routehelpers and also sort imports and get rid of unused ones

* that previous commit but actkally

* readd the cache in a dozen places they were implicitly imported

* use g.is_tor instead of request.headers. bla bla bla

* upgrade streamers to their own route file

* get rid of unused imports in __main__

* fgfgf

* don't pull in the entire ORM where we don't need it

* features

* explicit imports for the get helper

* explicit imports for the get helper redux

* testing allroutes

* remove unused import

* decouple flask from classes

* syntax fix also remember these have side fx for some reason (why?)

* move side effects out of the class

* posts

* testing on devrama

* settings

* reloading

* settingssdsdsds

* streamer features

* site settings

* testing settings on devrama

* import

* fix modlog

* remove debug stuff

* revert commit 67275b21ab6e2f2520819e84d10bfc1c746a15b6

* archiveorg to _archiveorg

* skhudkfkjfd

* fix cron for PCM

* fix bugs that snekky wants me to

* Fix call to realbody passing db, standardize kwarg

* test

* import check_for_alts from the right place

* cloudflare

* testing on devrama

* fix cron i think

* shadow properly

* tasks

* Remove print which will surely be annoying in prod.

* v and create new session

* use files.classes

* make errors import little and fix rare 500 in /allow_nsfw

* Revert "use files.classes"

This reverts commit 98c10b876cf86ce058b7fb955cf1ec0bfb9996c6.

* pass v to media functions rather than using g

* fix

* dfdfdfdfd

* cleanup, py type checking is dumb so don't use it where it causes issues

* Fix some merge bugs, add DEFAULT_RATELIMIT to main.

* Fix imports on sqlalchemy expressions.

* `from random import random` is an error.

* Fix replies db param.

* errors: fix missing import

* fix rare 500: only send to GIFT_NOTIF_ID if it exists, and send them the right text

* Fix signup formkey.

* fix 2 500s

* propagate db to submissions

* fix replies

* dfdfdfdf

* Fix verifiedcolor.

* is_manual

* can't use getters outside of an app context

* don't attempt to do gumroad on sites where it's not enabled

* don't attempt to do gumraod on sites's where it's unnecessary

* Revert "don't attempt to do gumroad on sites where it's not enabled"

This reverts commit 6f8a6331878655492dfaf1907b27f8be513c14d3.

* fix 500

* validate media type

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-15 03:19:08 -06:00
Aevann1 41ab1f313c move feature_required wrappers up 2022-11-14 18:14:47 +02:00
justcool393 d3aea510f8 remove base 36 crap 2022-11-14 10:10:16 -06:00
Snakes d3f25739f0 Fix ratelimit_user on 3 routes, make proper dec. 2022-11-13 07:25:57 -05:00
Snakes 8fee66c894
Reorder decorators to support f63237a9a2.
Ultimately necessary because otherwise all bots share rate limits
with each other. The somewhat haphazard ordering of decorators bothers
me, but it's functionally required.

Approaches using request context (like reading the Authorization
header in ratelimit_user) likely produce bugs all their own.
2022-11-13 05:18:52 -05:00
justcool393 aa272729f1 default ratelimit and default ratelimit slower 2022-11-13 00:43:47 -06:00
justcool393 80d7d5281d ratelimit_user() wrapper 2022-11-13 00:07:15 -06:00
Aevann1 27a8fd4657 same as last commit 2022-11-12 12:11:46 +02:00
Aevann1 b37ebff403 revert prev commit and redo logic 2022-11-12 12:02:23 +02:00
Aevann1 6f30cdeee5 only limit /settings/kofi to subscriptions 2022-11-12 11:56:26 +02:00
Aevann1 05b7e79b76 remove the code i added for rdrama.com 2022-11-11 15:52:18 +02:00
Aevann1 0060a326d7 allow ppl to link discord media in DMs 2022-11-09 21:33:16 +02:00
Snakes e0f43c3668
Remove is_nofollow from backend. 2022-11-09 10:05:36 -05:00
Snakes ebb3957f41
Eager load submission listing relationships. 2022-11-09 09:16:22 -05:00
geese-suck 462e3421b5
organize templates (#435)
dude file management lmao
2022-11-09 01:11:46 -05:00
justcool393 26549a6e66
remove logged out routes (#433)
* remove /logged_out/ routes

* update sitemap, remove users route, and update header

* cloudflare cookie

* only mess with the cookie whenever we desire auth

* sitemap: (small) improvements
sitemap: fix little bug i introduced
sitemap: fix login redirects for /id/ routes

* sitemap: remove duplicate entry

* contact is auth desired

* imports: don't import what we don't need and bind late to the db

* praying to god this works

* keep yourself safe

* oh i actually need to commit and push lol

* import Sub

* t

* refix cache purger
2022-11-09 00:35:24 -05:00
Aevann1 50bcc81f14 give user an error when they give invalid page input 2022-11-07 23:34:43 +02:00
Aevann1 bf260330df only show profile-pinned posts in the default sort 2022-11-07 13:27:42 +02:00
justcool393 0fffa7efc0 rename truecoins to truescore 2022-11-06 23:04:34 -08:00