Commit Graph

5840 Commits (585d8f96956ec29bc48bb28b0c486a0892c8ec8b)

Author SHA1 Message Date
Aevann 2ad04d472c stack benefactor awards 2022-12-23 02:44:52 +02:00
Aevann 942b5102bb remove forgotten if True 2022-12-23 00:43:03 +02:00
Aevann 9eb285c5ca abort(500) on /votes for shadowbanned nigs 2022-12-23 00:42:44 +02:00
Aevann c89e757a94 delete frontlist cache on hole pin or unpin 2022-12-23 00:39:59 +02:00
Aevann 31dd061b35 make syntax clearer 2022-12-23 00:36:50 +02:00
Aevann 5d6d108dd5 remove redundant domain bans 2022-12-23 00:25:31 +02:00
Aevann ad34c7df3f fix 500 error 2022-12-22 23:56:29 +02:00
Aevann 2b3b25c188 fix 500 error 2022-12-22 23:26:46 +02:00
Aevann fb66355d2a remove leftover print statement 2022-12-22 23:25:40 +02:00
Aevann a54734c32f better caching for get_alt_graph 2022-12-22 23:24:36 +02:00
Aevann e6274e06f3 delete ability of jannies to clear internal cache 2022-12-22 22:52:36 +02:00
Aevann f0eee0aa68 fix 500 error on voting 2022-12-22 22:51:56 +02:00
Aevann 284b3ba9ec delete property that jc forgot to actually define... 2022-12-22 22:46:05 +02:00
Aevann 92cbe64ac0 cache get_alt_graph for 1 hour 2022-12-22 22:44:37 +02:00
Aevann 0e6b144ed7 alt graph 2022-12-22 22:03:40 +02:00
Aevann1 e6b7b23605 fix 500 error for chud award on profile wall 2022-12-22 17:19:31 +02:00
Aevann1 b96c0642bd give jannies progstack 2022-12-22 16:08:18 +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 97e3623ef0 default comment_idlist timefilter to "day" 2022-12-21 22:15:37 +02:00
Aevann1 98b427e3a2 prevent DDOS 2022-12-21 22:14:33 +02:00
Aevann1 1dab4f7804 fix last commit 2022-12-21 18:17:14 +02:00
Aevann1 faf17f420c add notification for make_admin and remove_admin 2022-12-21 16:38:02 +02:00
Aevann1 745e741d95 remove most env defaults (i dislike them, cope and sneeze) 2022-12-21 15:09:23 +02:00
Aevann1 3ae5292ce4 remove pcm from code 2022-12-21 14:42:41 +02:00
Aevann1 1b7eb7cb87 Revert "add print statements for debugging /stats"
This reverts commit a7ec033698.
2022-12-21 01:00:26 +02:00
Aevann1 a7ec033698 add print statements for debugging /stats 2022-12-21 00:50:51 +02:00
Aevann1 fe6fe68e3c fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3276699 2022-12-20 23:30:35 +02:00
Aevann1 90d5399de1 2fa minor change 2022-12-20 23:20:32 +02:00
Aevann1 d133ed0966 fix 500 error i think 2022-12-20 23:15:24 +02:00
Aevann1 6c4a53b333 separate 2fa error messages 2022-12-20 18:56:44 +02:00
Aevann1 59738f5701 minor push notifs title fix 2022-12-20 05:08:58 +02:00
Aevann1 169dc4ebef remove #context in links 2022-12-20 05:05:13 +02:00
Aevann1 ea322e4c20 remove ?context=8 2022-12-20 05:03:59 +02:00
Aevann1 e08e2ce1c9 fix wall push notif url that JC broke 2022-12-20 05:03:43 +02:00
Aevann1 74457e5468 rework stats a bit 2022-12-20 04:26:27 +02:00
Aevann1 a7d9d2ed6a make event_music become False when receiving grinch award 2022-12-20 04:07:37 +02:00
Aevann1 2183161916 add toggle for event music 2022-12-20 03:38:19 +02:00
Aevann1 373a6cf0db add grinch 2022-12-20 03:13:34 +02:00
Aevann1 bee14957a7 increase cache timeout for stats by x10 2022-12-20 02:43:51 +02:00
Aevann1 eee0dfce6a restore /stats 2022-12-20 02:42:39 +02:00
Aevann1 c190fa89b2 give jannoids notifs for deleted and removed comments 2022-12-19 23:28:37 +02:00
Aevann1 4997ba561a disable 2fa requirement in localhost 2022-12-19 23:27:56 +02:00
Aevann1 e217cc9758 give new user notifs to 3 jannies in PCM 2022-12-19 22:32:24 +02:00
Aevann1 e6e8fa0d1a dont link any alts to boo's main account 2022-12-19 22:20:57 +02:00
Aevann1 f19bbb1c09 double XP 2022-12-19 21:09:51 +02:00
Aevann1 ecb3ee52b4 disable admin features unless 2FA configured 2022-12-19 20:57:20 +02:00
Aevann1 29fa5bcf4d add lootboxes 2022-12-19 19:12:07 +02:00
Aevann1 2028216c45 do this https://stupidpol.site/h/slackernews/post/132440/ml-engineer-analyzes-what-chatgpt-marks/3265102#context 2022-12-19 19:12:07 +02:00
Aevann1 481d0d7c6a remove carp award immunity 2022-12-19 16:43:52 +02:00
Aevann1 e832be4c18 restore badge rate limit 2022-12-19 15:55:39 +02:00
Aevann1 cda5870f8e disable transparent.css when event 2022-12-19 03:45:00 +02:00
geese_suck 1574b4da63 fistmas (#79)
Co-authored-by: justcool393 <justcool393@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Co-authored-by: Nekobit Bitneko <me@ow.nekobit.net>
Reviewed-on: #79
Co-authored-by: geese_suck <deandre.williams@geese-suck.us>
Co-committed-by: geese_suck <deandre.williams@geese-suck.us>
2022-12-19 01:20:14 +00:00
Aevann1 54e3a7eeab fix 500 error 2022-12-18 19:01:06 +02:00
Aevann1 4a334133bc same as last commit 2022-12-18 18:47:11 +02:00
Aevann1 31aa9b09a8 relax ratelimit for badge_grant 2022-12-18 18:46:44 +02:00
Aevann1 6cde4a040c make ?context=8 default 2022-12-18 16:48:48 +02:00
Aevann1 cafe3c47d3 overwrite ban reason 2022-12-18 16:25:28 +02:00
Aevann1 9974f98b8c Revert "Revert "remove the logic for fixing old mentions""
This reverts commit 5e9e1872af.
2022-12-17 21:11:22 +02:00
Aevann1 5e9e1872af Revert "remove the logic for fixing old mentions"
This reverts commit 90f6f0b96e.
2022-12-17 21:05:29 +02:00
Aevann1 2256fecee6 /stats crashes workers - disable until someone else fixes it (not me) 2022-12-17 20:55:24 +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 c546412951 fix bug due to bad syntax 2022-12-16 22:40:16 +02:00
Aevann1 fdf8380659 fix wrong syntax (marseybrainlet) 2022-12-16 22:25:48 +02:00
Aevann1 b6c01fb275 clicking twice shouldn't generate a mod log 2022-12-16 22:17:03 +02:00
Aevann1 ae51fe812a fix 500 error 2022-12-16 22:08:46 +02:00
Aevann1 ecfba3e3b5 give me notifs for only "ban_user" and "shadowban" 2022-12-16 21:34:01 +02:00
Aevann1 173f9e9853 fix push notif title 2022-12-16 20:06:00 +02:00
Aevann1 90f6f0b96e remove the logic for fixing old mentions 2022-12-16 19:50:34 +02:00
Aevann1 8660fcaa2e fix old mentions 2022-12-16 19:47:40 +02:00
Aevann1 f54b9a0259 fix 500 error 2022-12-16 19:45:01 +02:00
Aevann1 7c389bbdfd fix old mentions 2022-12-16 19:43:06 +02:00
Aevann1 78e2fe9d5a remove unnecessary logic now 2022-12-16 16:48:17 +02:00
justcool393 7aa10b9d1b special logic redux (#76)
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #76
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-15 22:56:04 +00:00
justcool393 82f34d0cab submissions: special posting sub logic by request (#75)
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #75
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-15 22:51:59 +00:00
Aevann1 bd8ac649d4 order punished listings by truescore instead 2022-12-15 20:31:58 +02:00
Aevann1 10dc8a37ac better ban_reason when using ban award 2022-12-14 22:37:47 +02:00
Aevann1 a71b21c1b6 fix JC bug 2022-12-14 20:24:14 +02:00
Aevann1 ac4a2c8ff7 add total truescore and total patrons to poll_votes.html 2022-12-14 19:28:31 +02:00
Aevann1 0c94ec2067 restore themecolor to default when switching from win98 theme 2022-12-14 18:59:00 +02:00
Aevann1 c491b5deb2 disable shit award 15 coins 2022-12-14 16:03:18 +02:00
Aevann1 1773632a75 remove punished listings filtering 2022-12-14 15:17:39 +02:00
Aevann1 df804c3179 minor change to punished listings 2022-12-14 15:12:02 +02:00
Snakes cf5eff3f48
Revert "better shadowban propagation"
This reverts commit 129f335363.

If there exists a loop in alts, this sends a worker into an infinite
loop, thrashes the database, and eventually crashes the worker. This,
in practice, makes shadowbanning people with many alts impossible since
our alt linking algorithm almost explicitly creates cycles rather than
maintaining a tree.

To fix this, we need SQL that builds a set of all Users in the
connected Alt graph of a given user (likely using a recursive CTE)
and then bans them at once, rather than running a depth-first search
with maximum depth that doesn't remember previously visited nodes.

There is also potentially the chance that this isn't because of cycles
per se but rather because quintic polynomial behavior explodes quickly
even in the low-double-digits number of alts.
2022-12-13 23:21:53 -05:00
Snakes 88352cc1cb
Revert "modmail: fix modmail 404 (#64)"
This reverts commit a9309096b4.

This doesn't fix the modmail bug in all contexts and introduces a bug
in another. Root cause is that POST /comments is sometimes called by
DM reply boxes (rather than POST /@<username>/message), revert pending
fix.
2022-12-13 22:07:32 -05:00
justcool393 a9309096b4 modmail: fix modmail 404 (#64)
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #64
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-14 02:13:50 +00: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 5be1fbd3fb add taglines 2022-12-13 23:24:45 +02:00
Aevann1 129f335363 better shadowban propagation 2022-12-13 23:12:58 +02:00
Aevann1 6ad67b97c3 reduce all-seeing eye price to 5k 2022-12-13 21:51:07 +02:00
Aevann1 b531d38384 small change to punish listings 2022-12-13 20:54:18 +02:00
Aevann1 36fca9caab minor bugfix 2022-12-13 20:50:38 +02:00
Aevann1 04b4a01b0a add marco threads to WC leaderboard 2022-12-13 19:21:15 +02:00
Aevann1 904660194f fix JC bug 2022-12-13 19:19:39 +02:00
Aevann1 eaf0faeaaf do this https://stupidpol.site/post/130970/this-is-fucking-bullshit-codecels-fix 2022-12-13 19:15:07 +02:00
Aevann1 0376124eb0 clearer notifications for hole and admin actions 2022-12-13 19:11:26 +02:00
Aevann1 647d8fdd2a minor fix for bug 2022-12-13 18:54:11 +02:00
Aevann1 7fa88a3633 make unread inaccessible notifs as read 2022-12-13 18:47:57 +02:00
Aevann1 7c3b3cde30 prevent the pathetic manlet from privating his profile 2022-12-12 22:48:04 +02:00
Aevann1 2b358ddcfc prevent the manlet from deleting his comments 2022-12-12 22:45:11 +02:00
Aevann1 feead592a4 increase hole banner ratelimit 2022-12-12 16:40:53 +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 2258b18566 show the votes button to logged-out niggas 2022-12-11 21:32:30 +02:00
Aevann1 d59543891f add BAN_EVASION_FULL constant 2022-12-11 20:56:04 +02:00
Aevann1 a1debd4051 fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3223428?context=8#context 2022-12-11 18:30:40 +02:00
Aevann1 49ac549651 disallow ppl giving chud award in /h/chudrama 2022-12-11 18:22:44 +02:00
Aevann1 02eb014dd8 posters for videos 2022-12-10 21:39:30 +02:00
Aevann1 b2d457c028 increase css limit from 4000 to 10000 2022-12-10 20:30:19 +02:00
Aevann1 cd9591cd28 make post.new work when viewing comment 2022-12-10 19:06:28 +02: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 3e3d39e432 minor /set_new rework 2022-12-10 16:57:19 +02:00
Aevann1 2525db6b07 give ppl a notif when janny toggles nsfw on their posts 2022-12-10 16:47:20 +02:00
Aevann1 5e52a86500 cleanup user ids in const.py 2022-12-10 16:00:03 +02:00
Aevann1 033e4dd35c disable janny chudding in /h/chudrama 2022-12-10 15:06:30 +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 a3c51202d1 improvement to sorting table + get rid of scope="col" 2022-12-10 10:47:15 +02:00
Aevann1 ce27be1d4a fix comment refactor bug 2022-12-10 10:26:47 +02:00
Aevann1 ff2ced1911 fix 500 error 2022-12-10 10:24:29 +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 f06da51288 vid-thumbs: suppress ffmpeg stdout, fix vid toggle
Previous behavior on submission_listing was clicking a thumbnail would
toggle an inline video player. This was retained for clicking the
thumbnail off the `.video-play` element; however, directly clicking
the `.video-play` did not have the `toggleVideo` onclick event attached
and would navigate the browser to the video file directly.
2022-12-10 04:05:46 +00:00
Aevann1 37cedaee9f add thumbnails for videos on the frontpage 2022-12-10 04:05:46 +00:00
Aevann1 ef4cb46be7 fix voting 2022-12-09 19:11:53 +02:00
Aevann1 601e95ae07 boost all domains that have "forum" in them 2022-12-09 18:42:18 +02:00
Aevann1 16cd5f2e17 profile anthem - allow downloading age-restricted videos 2022-12-09 09:30:27 +02:00
Aevann1 25cd81e326 dont allow admins to remove themselves 2022-12-09 07:58:44 +02:00
Aevann1 77429369d7 ratelimit 2022-12-09 07:56:34 +02:00
Snakes 0d580b8b4f
Fix post comment count logic not activating.
Also standardize parameter list order for comment games.
2022-12-09 00:56:08 -05:00
Aevann1 07eb8bdebc fix 500 error 2022-12-09 07:54:56 +02:00
Snakes d4b822b956
Amend 3e8c98494f: shadowbanned isn't a bool. 2022-12-08 23:06:21 -05:00
justcool393 0ea43788e3 feeds: fix XML namespace (#56)
namespaces are very particular and the https:// version is not the valid
namespace for this XML document

note: this doesn't fix it in the watermark code. that will be fixed by the watermark PR. please don't trample over it ty <3
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #56
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-09 03:49:50 +00: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
Aevann1 391d646a2c order asset submissions by most recent last 2022-12-08 17:50:23 +02:00
Aevann1 69535a30f0 order assets submissions by most recent last 2022-12-08 17:05:23 +02:00
Aevann1 5e8f2d0681 clearer error message 2022-12-08 16:34:31 +02:00
Aevann1 9b5496b140 fix updating marseys that dont follow the naming convention 2022-12-08 15:55:30 +02:00
Aevann1 0d812f1294 check for profile background existence before atttempting to delete 2022-12-08 07:20:34 +02:00
Aevann1 f95f4f2c97 simplify badge granting/removal 2022-12-07 21:03:06 +02:00
Aevann1 93063516ce tie transparent theme to backgrounds 2022-12-07 19:53:29 +02: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 4634b45212 fix profile wall push notif titles 2022-12-07 10:48:06 +02:00
Aevann1 7d6b5862e4 uncomment commented line lol 2022-12-07 09:53:46 +02:00
justcool393 6dbad04f08 band-aid fix for frozen session issue on signup (#50)
through some reason or another, people are somehow getting cookies that aren't prepended with a dot.

this is a problem because both sessions at, as best as I can tell, mix so it tries to read from a different cookie than we write to. this essentially "freezes" the session in place. users are unable to login, logout, signup, toggle poor mode, toggle NSFW, etc.

~~this attempts to delete bad session cookies (i.e. cookies with a domain that don't start with a dot).~~

~~we don't do this on "dotless" domains (and by extension localhost) because browser support for setting cookies on FQDNs that only have one dot has tenuous support among browsers anyway).~~

~~this *may* log some people out, but... their days of being able to do stuff on the site were numbered anyway.~~

**edit: as amazing as this thought was, browsers just wipe the entire cookies completely and there's no way to specifically target dotless cookies. for an issue that affects a few users, better to just tell them to clear their cookies. if *this* doesn't work, delete service-worker.js and be done with the whole service worker crap. forever. permanently. this PR also includes some QOL improvements.**

Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #50
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-06 22:07:12 +00:00
Aevann1 b5b3b9dcc3 fix pin awards 2022-12-05 18:01:13 +02:00
Aevann1 8101e7d91b fix 500 errors 2022-12-05 17:16:11 +02:00
Aevann1 15088e5eef add button to remove current profile background 2022-12-05 17:14:53 +02:00
Aevann1 84ec5f5b46 truncate unnecessary logic 2022-12-05 17:10:15 +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 ab7144d94a Revert "only show "upload profile background" if user on desktop or uses transparent theme"
This reverts commit 7b0de3e79d.
2022-12-05 16:25:39 +02:00
Aevann1 7b0de3e79d only show "upload profile background" if user on desktop or uses transparent theme 2022-12-05 16:22:19 +02:00
Aevann1 7f1de57ffe minor log fix 2022-12-05 16:06:11 +02:00
Aevann1 c0169d0dab fix voting on profile wall 2022-12-05 08:18:37 +02:00
Aevann 18df70caab allow JL3 to edit rules (#39)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Reviewed-on: #39
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-05 05:22:08 +00:00
Aevann f8aa67fb9a add button on profile to upload profile background (#48)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Reviewed-on: #48
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-05 04:16:45 +00:00
Aevann1 3971607aee fix agendapostered wall comments 2022-12-05 05:08:06 +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 d6a219c151 fix this https://rdrama.net/h/changelog/post/128866/changelog-added-profile-walls-profile-views/3186595?context=8#context 2022-12-05 04:11:13 +02:00
Aevann1 1e34625c1f fix editing wall comments 2022-12-05 04:08:24 +02:00
Aevann1 8d64804724 fix wrong username direct 2022-12-05 03:33:43 +02:00
Aevann1 5070cb4fc0 fix spam check 2022-12-05 03:31:21 +02:00
Snakes 2057c48ebd
Fix userpage walls for logged-out viewers. 2022-12-04 20:23:48 -05:00
Aevann1 14d343dcb3 dont change titles for chudded ppl posting on /h/chudrama 2022-12-05 03:21:47 +02:00
Snakes d976dcef7e
Update wall_comment for sanitize_poll_options. 2022-12-04 20:05:45 -05:00
Aevann1 cb4d941fd0
add profile wall 2022-12-04 20:05:45 -05:00
Aevann 5850bb26fa add custom backgrounds paypig feature to compensate for profile views (#44)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Reviewed-on: #44
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-05 00:02:29 +00:00
justcool393 ed0981cbdb add functionality to disable poll formatting (#35)
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #35
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-04 21:46:27 +00:00
Aevann1 da643ea88b sneed 2022-12-04 21:30:33 +02:00
Aevann 3eecec0a51 downloadable videos on apple devices (#42)
![image](/attachments/bd1b3e1e-c0a9-4eee-9b1c-a03e1e8a8cbd)

Co-authored-by: Aevann1 <randomname42029@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Co-authored-by: Snakes <snakes@noreply.fsdfsd.net>
Reviewed-on: #42
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-04 19:02:22 +00:00
Aevann e105035272 remove country club system and replace it with a 3 tier thing: (#41)
- /h/masterbaiters: 1 TS - for gayops

- /h/countryclub: 1000 TS - for anything requiring secrecy and doesnt need critical mass - have to make it a rule that u cant post gayops in /h/countryclub

- /h/chudrama: 5000 TS - for chad+stud posts

EDIT: i removed the /h/masterbaiters gate, but u can bring it back if u want
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: #41
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-04 18:39:06 +00:00
Aevann1 c0676e198c convert "var" to "let" and "const" 2022-12-04 17:40:32 +02:00
Aevann1 36c69cca0a kofi - only change patron tier when its a supscription 2022-12-04 00:51:52 +02:00
Aevann1 49263fdd86 Revert "stop using background css property and use its parts instead"
This reverts commit e4e67a4424.
2022-12-04 00:17:35 +02:00
Aevann1 e4e67a4424 stop using background css property and use its parts instead 2022-12-04 00:11:02 +02:00
Aevann1 2deba4d623 "megathread" new sort 2022-12-04 00:01:08 +02:00
Aevann1 045cb629ae fix this https://stupidpol.site/h/programming/post/128513/its-another-shoah-soycry 2022-12-03 22:00:10 +02:00
Aevann1 5d3413377d sneed 2022-12-03 20:57:44 +02:00
Aevann1 407dcb1282 same as last commit 2022-12-03 07:39:58 +02:00
Aevann1 f28ae7cca1 refresh comment textarea on edit - fixes edge case 2022-12-03 07:27:47 +02:00
Aevann1 fa0bb57253 fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3175605?context=8#context 2022-12-03 04:14:01 +02:00
Aevann1 c01d757dc7 delete legacy route 2022-12-03 00:37:31 +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 3542703ced Revert "make it so only the post author can declare winner and not all admins"
This reverts commit 9e1425d93e.
2022-12-03 00:08:46 +02:00
Aevann1 9e1425d93e make it so only the post author can declare winner and not all admins 2022-12-03 00:06:57 +02:00
Snakes 15dc9c4cf7
Ensure eg log created if not exists. 2022-12-02 15:35:15 -05:00
Aevann1 ecc32382b2 Revert "https://www.youtube.com/watch?v=_904EvOUQ_M"
This reverts commit 6d0277adc8.
2022-12-02 00:37:50 +02:00
Snakes 27506b36c2
Fix unbound ORM object erroring during 500 handler.
The 500 fixed in 71738b05fc revealed that attempting to access g.v at
all during an error handler can potentially cause its own error.
In particular, html_head L111 accessing v.themecolor errored because
we roll back the database session during 500 handling. There's no good
solution other than specifically not passing v to 500 error pages.

However, in the interest of failing fast and ensuring error handlers
always complete, we instead go back to the previous behavior of not
treating users as logged in for error pages.
2022-12-01 17:24:41 -05:00
Snakes 71738b05fc
Fix 500 on all non-holed post submissions. 2022-12-01 17:12:57 -05:00
justcool393 0f2f72f2c3 sort by new button (#34)
also get rid of megathread logic

do the needful and do
```sql
UPDATE submissions SET new=true WHERE title LIKE 'Thread' OR title ILIKE 'megathread';
```
or whatever the proper equivalent is

Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #34
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-01 22:04:10 +00:00
Aevann1 e125443d50 make Thread (upper case) sort comments by new, around 20% false positive rate but worth it 2022-12-01 19:49:26 +02:00
Aevann1 6d0277adc8 https://www.youtube.com/watch?v=_904EvOUQ_M 2022-12-01 19:07:14 +02:00
Aevann1 3308734dc7 dont auto-pin if post sub is stealthed 2022-12-01 18:22:33 +02:00
justcool393 fe55c2383c fix 500 on 500 2022-12-01 10:10:05 -06:00
justcool393 c05a9f335b Revert "Revert "errors: don't do anything with the user""
This reverts commit 3e2ca53f2a.
2022-12-01 10:07:59 -06:00
Snakes b04b7e9269
Fix /votes/ downvote listing display. 2022-12-01 10:15:52 -05:00
Snakes ebc3e9a3f2
Exclude sb'd from vote counts, retain in tables.
Addressing the downvote spamming on WPD. Correctly shows jannies which
users are SB'd, shows all voters (sans SB icons) to SB'd users, and
only shows real voters to normies. SB'd users votes are still tracked
so the icons look to them like they're doing something.
2022-12-01 10:06:16 -05:00
Aevann1 3e2ca53f2a Revert "errors: don't do anything with the user"
This reverts commit b7a24f6fa1.
2022-12-01 14:58:32 +02:00
Aevann1 845e13b4ae minor bug fix 2022-12-01 14:27:15 +02: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
Aevann1 f5f660efa9 add logged-out chromium instructions for installing PWA 2022-12-01 01:14:29 +02: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
Aevann1 87ae34966b badge perm shit 2022-11-30 23:15:10 +02:00
justcool393 b7a24f6fa1 errors: don't do anything with the user
this is an evil context to have a user in do not change this
or i will find you whatever country you're from
2022-11-30 13:07:29 -06:00
justcool393 46f2b805ef config: fix _SETTINGS dict and stray signups 2022-11-30 13:03:46 -06:00
justcool393 69a44baea7 settings: convert all to snek_case 2022-11-30 12:26:07 -06:00
justcool393 d395bcab69 logging: create somewhat sane logging 2022-11-30 12:09:31 -06:00
justcool393 0106a4e340 antispam: under siege mode 2022-11-30 11:37:35 -06:00
justcool393 b59e4cadaa login: don't allow logged in users to attempt to login 2022-11-30 10:49:15 -06:00
Aevann1 836d3bfd98 include v in errors if possible 2022-11-30 15:21:12 +02:00
Aevann1 abe07e7754 this is retarded 2022-11-30 13:35:57 +02:00
justcool393 c0f1b875d0 chat: ratelimit chat lol
apparently we haven't done that xdd
2022-11-29 19:36:09 -06:00
justcool393 c315a2a259 amend previous 2022-11-29 19:31:28 -06:00
justcool393 883be4019c kofi: fix kofi 500 2022-11-29 19:30:33 -06:00
justcool393 db31fc17de ratelimits: turn off autocheck so we can init
required app context globals
2022-11-29 19:29:06 -06:00
justcool393 f2411415dd fix missing required context variables on 429 and remove flex tape 2022-11-29 19:12:43 -06:00
justcool393 20459a59dd flex tape patch 2022-11-29 18:06:16 -06:00
Aevann1 de8a45412b fix /icon.webp 2022-11-30 01:56:11 +02:00
justcool393 11059d1665 move calc users to context processor (#31)
jinja more like i can't think of anything witty

Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #31
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-11-29 23:50:32 +00:00
Aevann 9893ede920 fix browserconfig.xml (#30)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Reviewed-on: #30
2022-11-29 23:19:03 +00:00
Snakes 9fcdd65d38
PCM: improve Kippy's inflationary ergonomics. 2022-11-29 17:18:33 -05:00
justcool393 65236df78a don't read multiple times etc 2022-11-29 16:11:07 -06:00
justcool393 80466f3150 chat: fix cache commit and stuff idk 2022-11-29 16:02:43 -06:00
justcool393 5056f09380 chat: fix 500 on some... weird... state... i think?
cache: get out of jinja templates
chat: threshold is now a const
2022-11-29 15:49:23 -06:00
Snakes 0dd7809b49
Sort banned_domains deterministically. 2022-11-29 16:24:13 -05:00
justcool393 03e7b4c6a2 events: initialize event_v properly 2022-11-29 14:35:28 -06:00
justcool393 67bfe5a5bd remove unnecessary `str()` 2022-11-29 14:29:27 -06:00
geese_suck a3fa96242c holiday event manager (actually works now edition) (#22)
Co-authored-by: Snakes <duolsm@outlook.com>
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #22
Co-authored-by: geese_suck <deandre.williams@geese-suck.us>
Co-committed-by: geese_suck <deandre.williams@geese-suck.us>
2022-11-29 20:20:26 +00:00
Aevann1 ed5b3dc4bb remove ruckus.webp 2022-11-29 07:25:17 +02:00
justcool393 c47dae86ec remove unused g attribute 2022-11-28 21:51:36 -06:00
Snakes c762c84bde
worldcup2022: retain backwards compat on URL. 2022-11-28 22:39:51 -05:00
Aevann1 3e42918afb minor background dedup 2022-11-29 05:37:56 +02:00
Snakes d6680a29a3
Rename events.py and related to 'special'.
For @geese-suck's namespace conflict.
2022-11-28 22:36:20 -05:00
Aevann1 bf1da34dae Revert "marseys table is way way too large to use javascript for sorting, you would've known that if u had tested"
This reverts commit fe0da05415.
2022-11-29 05:22:59 +02:00
Snakes 2304876348
Fix emoji search after Marsey caching revert. 2022-11-28 22:18:16 -05:00
Aevann1 261abe3161 archives - add additional route for ease of use 2022-11-29 05:08:26 +02:00
Aevann1 8182be4730 minor syntax change for no reason 2022-11-29 03:53:30 +02:00
Aevann1 ff2503ce4b fix 500 error 2022-11-29 03:47:54 +02:00
Aevann1 be8be13a01 move pinned comment ordering to SQLAlchemy 2022-11-29 02:04:06 +02:00
Aevann1 c0d91c9e71 fix last commit (i cant do this without coffee help me) 2022-11-29 01:48:16 +02:00
Aevann1 b6c45c4208 make going to the reddit version of archived posts easier 2022-11-29 01:45:52 +02:00
Aevann1 3d1c16044a use abort instead of sending raw text lol 2022-11-29 01:38:41 +02:00
justcool393 8506c46306 wpd: remove special front page logic 2022-11-28 16:55:16 -06:00