Commit Graph

820 Commits (4b8e7997c5d5fdc6e24f57ca31cde5694628a97d)

Author SHA1 Message Date
Aevann a395c18955 remove unnecessary tabs 2023-02-22 19:27:33 +02:00
Aevann 8cf4b6fda6 reduce default admin level 2023-02-21 17:14:37 +02:00
Aevann b819fa51d0 make it possible for jannies to stack chuds and bans 2023-02-19 15:23:08 +02:00
Aevann 8158b70c20 apparently cardview toggle got removed from the settings, so might as well remove it from the code 2023-02-19 11:20:16 +02:00
Aevann 728217c075 remove FORBIDDEN 2023-01-31 23:22:21 +02:00
Aevann 995b5365cc Revert "give me modaction notifs on WPD"
This reverts commit 6105640429.
2023-01-30 11:39:12 +02:00
Aevann 683b7751bc show me modaction notifs 2023-01-28 10:09:18 +02:00
Aevann 6105640429 give me modaction notifs on WPD 2023-01-27 15:50:47 +02:00
Aevann ffa04a3cd5 constantify my log action types 2023-01-27 10:18:05 +02:00
Aevann 2754abb58e fix 500 error 2023-01-26 07:39:17 +02:00
Aevann 5eea908e6f fix 500 error 2023-01-26 07:36:41 +02:00
Aevann ab580f626f fix 500 error 2023-01-26 07:31:47 +02:00
Aevann ceee02fbce add button to blacklist users from restricted holes 2023-01-25 17:41:46 +02:00
Aevann 90181024cc fix 1 year badge 2023-01-25 14:36:09 +02:00
Aevann 680135755e Revert "get rid of get_alt_graph"
This reverts commit e2e3da4bda.
2023-01-25 04:51:48 +02:00
Aevann e2e3da4bda get rid of get_alt_graph 2023-01-25 03:07:30 +02:00
SneedBot 625778721e sneed 2023-01-24 06:42:36 +00:00
Aevann 0f4de38141 exclude merari and permabanned/shadowbanned from chudrama 2023-01-24 07:20:15 +02:00
Aevann 78738589b5 exclude merari from all restricted shit 2023-01-24 07:17:58 +02:00
Aevann 4f0b771983 increase DEFAULT_ADMIN_LEVEL from 3 to 5 on devrama 2023-01-23 07:40:01 +02:00
Aevann 7f1ddf5c0c fix delinking alts 2023-01-22 10:20:38 +02:00
Aevann 24edb49f3b add jl5 (for me) 2023-01-22 10:04:49 +02:00
Aevann 75cb26ccf4 remove platform-specific posts 2023-01-22 09:57:47 +02:00
Aevann f17fade8a6 purge discord from site code 2023-01-20 07:31:53 +02:00
Aevann 9f0b238370 increase ts gate for masterbaiters from 0 to 100 and ban merari from it 2023-01-20 07:13:53 +02:00
Aevann 044664a25e get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
Aevann db6db63836 change event structure 2023-01-01 07:33:09 +02:00
Aevann 03fb84e618 fix HOLIDAY_EVENT check 2023-01-01 04:50:11 +02:00
Aevann 78351abc4c clean up legacy stuff 2023-01-01 03:17:07 +02:00
Aevann f800950d02 fix error on signup 2022-12-30 21:13:45 +02:00
Aevann 93e9a42fa3 stop using inline style/script elements 2022-12-29 16:20:27 +02:00
Aevann 21a8e6570b reduce devrama starter amount by one zero 2022-12-27 11:33:31 +02:00
Aevann f97be253e7 increase number of coins and mbux on devrama 2022-12-27 06:32:01 +02:00
Aevann 30afd3a5ed put spaces around == 2022-12-27 04:51:12 +02:00
Aevann f4164052cf give devrama users a shitton of coins and mbux 2022-12-27 04:00:08 +02:00
Aevann ba13454f9e give everyone on devrama admin_level 2022-12-27 03:53:47 +02:00
Aevann f37e1dc702 disallow jannoids from undoing chud awards 2022-12-26 04:38:32 +02:00
Aevann 3dd1f706a8 rename fistmas to christmas on WPD 2022-12-25 04:25:11 +02:00
Aevann ecfcbaf3df make hat_active return a tuple 2022-12-25 00:21:49 +02:00
Aevann a63b02470d use sets with in statements 2022-12-24 00:22:41 +02:00
Aevann 478b176f5e fix christmas hat descriptions 2022-12-23 04:11:47 +02:00
Aevann 5d09ef1103 fix accidentially deleted @property 🤡 2022-12-22 22:58:27 +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 1d3fa2f93f remove CARD_VIEW env var 2022-12-21 15:04:45 +02:00
Aevann1 3ae5292ce4 remove pcm from code 2022-12-21 14:42:41 +02:00
Aevann1 d17cfbf323 allow PCM and WPD users to opt into event music 2022-12-20 05:52:00 +02:00
Aevann1 7297fad5fe allow PCM and WPD users to opt into event music 2022-12-20 03:40:41 +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 c190fa89b2 give jannoids notifs for deleted and removed comments 2022-12-19 23:28:37 +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 ecfba3e3b5 give me notifs for only "ban_user" and "shadowban" 2022-12-16 21:34:01 +02:00
Captain 84cfc21b0b added original name for user.json 2022-12-15 19:00:53 +00:00
justcool393 d556e72c04 users: let users see (comments on) own posts 2022-12-14 18:33:54 -06:00
Aevann1 e48d133977 rename Casino_Game to CasinoGame for consistency 2022-12-14 21:30:05 +02:00
Aevann1 8bc8546089 fix prev commit 2022-12-14 00:05:34 +02:00
Aevann1 c10c00473a make is_banned fkey on user id 2022-12-14 00:02:53 +02:00
Aevann1 1ba74ad8fa fix for last commit 2022-12-13 20:52:28 +02:00
Aevann1 36fca9caab minor bugfix 2022-12-13 20:50:38 +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 1886dd986e move sort_table.js to core.js 2022-12-10 12:40:34 +02:00
Aevann1 0a915aae08 disable ghost threads in WPD 2022-12-08 07:14:59 +02:00
Snakes 9160a853ec
Remove !YOU!.
Security mess and stale joke.
2022-12-05 20:06:04 -05: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 dbc64dc487 fix profile wall for logged-outcels 2022-12-05 03:53:09 +02:00
Aevann1 cb4d941fd0
add profile wall 2022-12-04 20:05:45 -05:00
Aevann1 814552cdfe small fix for ppl with progstack=1 2022-12-05 02:45:02 +02:00
Aevann1 892e35b1c3 splash mountain for PCM 2022-12-04 23:28:39 +02:00
justcool393 6e1509f2df admins: let mops who can mop posts see posts regardless of browser (#45)
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #45
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-04 20:26:39 +00:00
Aevann1 c56ceaf668 allow me and sneks to see apple posts 2022-12-04 22:11:16 +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 aad1d72f43 add code so i can make a post that only legacy android app users can see 2022-12-03 01:58:16 +02: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 4ab8825d35 fix 500 error 2022-12-01 15:19:09 +02:00
Aevann1 8bbc107137 dont give me reddit notifs again 2022-12-01 14:46:58 +02:00
Aevann1 e0bcc71727 fix notifs 2022-12-01 00:59:56 +02:00
Aevann1 cbd04b3c38 remove my special case so i can test 2022-12-01 00:44:16 +02:00
Aevann1 e1ed46fa36 rework reddit notifs - testing on pcm lol 2022-12-01 00:29:13 +02:00
Aevann1 b6eea4191c make me able to see reddit mentions again 2022-11-30 02:40:38 +02:00
Aevann1 b6efc27551 use "i" instead of "assets/images" 2022-11-30 00:52:19 +02:00
justcool393 e9887059d1 use `self.__class__.__name__` for `__repr__` 2022-11-29 15:02:38 -06:00
justcool393 67bfe5a5bd remove unnecessary `str()` 2022-11-29 14:29:27 -06: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
Aevann1 575a5080bd unpaywall profile views 2022-11-27 02:20:54 +02:00
justcool393 ae50cc2772 const: rename constants from LIMIT to MINIMUM
the new name is much much clearer
2022-11-26 14:20:44 -06:00
Marco af74c7c1fc Update chud award to include forced trans/pride flag hats (#10)
Disclaimer: I made these changes in Notepad and didn't bother to test this change locally.
Co-authored-by: Marco <bussylmao@gmail.com>
Reviewed-on: #10
Co-authored-by: Marco <marco@noreply.fsdfsd.net>
Co-committed-by: Marco <marco@noreply.fsdfsd.net>
2022-11-26 20:14:31 +00:00
Aevann1 39bb04bdb8 remove TS limit for !YOU! 2022-11-26 22:10:40 +02:00
Aevann1 bb153e541d Revert "you posts: constantify truescore requirement"
This reverts commit 1b721126a2.
2022-11-26 22:09:07 +02:00
Aevann1 98a0f37e59 Revert "user and"
This reverts commit 0b146d0b7b.
2022-11-26 22:08:54 +02:00
justcool393 0b146d0b7b user and 2022-11-26 13:40:34 -06:00
justcool393 1b721126a2 you posts: constantify truescore requirement 2022-11-26 13:39:31 -06:00
float trip df4eb02c0e Allow API clients to view !YOU! submissions. 2022-11-26 18:06:04 +00:00
Aevann1 9c773b02a5 sneed 2022-11-26 06:59:07 +02:00
Aevann1 a641acaf8f use sets instead of lists in some statements 2022-11-26 06:52:47 +02:00
justcool393 f86d351ac4 fix saved subscribers stuff 2022-11-25 16:06:18 -06:00
Snakes 0254ff6567
Restrict New User hat to rDrama. 2022-11-23 20:28:39 -05:00
Snakes 9eab252e5b
Fix reply/mention notifications from muted users.
Consider the case of the current /notifications filter condition:
    WHERE ... NOT ((comments.sentto = 2) AND (users.is_muted))

SELECT 1 WHERE NOT ((null = 2) AND (true)); ⇒ 0 rows
SELECT 1 WHERE NOT ((1 = 2) AND (true)); ⇒ 1 row
SELECT 1 WHERE NOT ((2 = 2) AND (true)); ⇒ 0 rows

We want the first expression, where comments.sentto = null, to evaluate
to false, not to null, so it negates to true. Behavior as written is:

SELECT 1 WHERE NOT ((null = 2) AND (true)); →
SELECT 1 WHERE NOT (null AND true); →
SELECT 1 WHERE NOT null; →
SELECT 1 WHERE null;

Which guarantees a null return set. If we check first for non-nullity:

SELECT 1 WHERE NOT ((null IS NOT null) AND (null = 2) AND (true)); ⇒ 1
SELECT 1 WHERE NOT ((1 IS NOT null) AND (1 = 2) AND (true)); ⇒ 1
SELECT 1 WHERE NOT ((2 IS NOT null) AND (2 = 2) AND (true)); ⇒ 0
2022-11-21 23:08:31 -05:00