Aevann
d6804a6489
fix 500 error
2023-03-21 13:03:27 +02:00
Aevann
b004617695
customizable chud phrases
2023-03-19 19:13:45 +02:00
Aevann
4fc5e2aa8d
fix badge_grant errors for the api
2023-03-17 19:59:55 +02:00
Aevann
2cf2d869de
refactor banning and chudding on posts/comments
2023-03-17 16:37:13 +02:00
Aevann
1bce14efcd
rename remove_media to remove_media_using_link for clarity
2023-03-17 12:25:49 +02:00
Aevann
a95cf32735
fix badge_granting via the api
2023-03-16 15:38:18 +02:00
Aevann
57765f0776
revert sqlalchemy changes
2023-03-16 08:27:58 +02:00
Aevann
f768d81103
keep db sessions open
2023-03-15 05:58:00 +02:00
Aevann
a2e926ef17
minor fix
2023-03-15 04:13:39 +02:00
Aevann
d2ccce4dba
allow making bets in comments
2023-03-12 19:36:35 +02:00
Aevann
97608ea0a9
test getting rid of ![]( on devrama
2023-03-12 15:02:31 +02:00
Aevann
84cebda61f
rename perm to be more clear
2023-03-11 06:53:54 +02:00
Aevann
514b7bfa7f
ratelimit /delete_media and notify me of its usage
2023-03-09 22:50:12 +02:00
Aevann
873292d60d
make remove_media() to fix 500 error
2023-03-06 21:32:08 +02:00
Aevann
30a8de0126
restore login_required mod log
2023-03-01 22:45:42 +02:00
Aevann
17bb6dad48
blackjack fix exploit
2023-02-27 07:33:45 +02:00
Aevann
fe0b8887bc
change 1/second ratelimit to 1/2 second
2023-02-26 12:26:26 +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
3e7ccb7756
add push notifs to add_notif()
2023-02-24 04:28:10 +02:00
Aevann
a395c18955
remove unnecessary tabs
2023-02-22 19:27:33 +02:00
Aevann
9de379d72f
give error when jannies attempt to chud a perma-chudded user or ban a permabanned-user
2023-02-22 19:11:29 +02:00
Aevann
e5b9009dc2
notify users when their flair gets changed by jannies
2023-02-22 19:00:38 +02:00
Aevann
bd97dc7d5f
fix last commit
2023-02-22 16:43:39 +02:00
Aevann
42ed35770c
paginate /admin/dm_images
2023-02-22 16:36:52 +02:00
Aevann
fd1f253ede
check for ban_reason length after sanitizing
2023-02-21 16:30:31 +02:00
Aevann
288fcde832
add /admin/delete_media
2023-02-19 21:31:26 +02:00
Aevann
472bed996f
add button to remove progstack
2023-02-19 16:02:30 +02:00
Aevann
b819fa51d0
make it possible for jannies to stack chuds and bans
2023-02-19 15:23:08 +02:00
Aevann
57e9cb3428
remove .deleted column for alts
2023-02-18 17:19:14 +02:00
Aevann
ef2bda6920
remove relinking
2023-02-18 16:55:18 +02:00
Aevann
2da4d08ad0
remove print debugging
2023-02-09 06:05:34 +02:00
Aevann
463a32e021
print debugging in devrama
2023-02-09 06:03:20 +02:00
Aevann
fc9b55c776
allow me to change settings in devrama
2023-02-09 06:02:39 +02:00
Aevann
a9ec1735c9
fix typo
2023-02-09 06:00:37 +02:00
Aevann
44a80f0492
make under_attack a setting and use it in /submit for WPD
2023-02-09 05:50:30 +02:00
Aevann
88814ee208
expand blackjack
2023-02-07 05:31:49 +02:00
Aevann
95938ee3ec
make sure all comment links have #context
2023-02-07 04:34:11 +02:00
Aevann
925fd0497a
disable showmore button in sidebars
2023-02-06 05:34:09 +02:00
Aevann
0b30067876
tweak admin perms
2023-01-29 10:28:29 +02:00
Aevann
3b4211e8e1
stop using nullslast rDrama/rDrama#102
2023-01-28 10:25:19 +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
ceee02fbce
add button to blacklist users from restricted holes
2023-01-25 17:41:46 +02:00
Aevann
94d7042512
add progstack btn to comments
2023-01-25 13:35:37 +02:00
Aevann
b23dc76d78
fix muting linking alts
2023-01-25 04:53:52 +02:00
Aevann
680135755e
Revert "get rid of get_alt_graph"
...
This reverts commit e2e3da4bda
.
2023-01-25 04:51:48 +02:00
Aevann
585d8f9695
fix make admin button
2023-01-25 03:53:20 +02:00
Aevann
947be4fef6
fix missing perm
2023-01-25 03:07:49 +02:00
Aevann
e2e3da4bda
get rid of get_alt_graph
2023-01-25 03:07:30 +02:00
Aevann
7e8329c296
remove account merging stuff
2023-01-24 14:20:30 +02:00
Aevann
95674fa39a
fix /admin/alts
2023-01-24 12:32:06 +02:00
Aevann
757c244f65
allow JL4 to unpin award pins
2023-01-24 12:24:27 +02:00
Aevann
c1268d396b
make it not possible to sticky removed comments
2023-01-24 12:23:19 +02:00
Aevann
f1bdfa8eda
disable modaction for login_required
2023-01-24 07:48:27 +02:00
Aevann
223909a2f8
fix 500 error on muting
2023-01-24 06:53:07 +02:00
Aevann
d1ee3ba0a3
fix 500 error
2023-01-23 14:44:30 +02:00
Aevann
bdaced6c10
allow admins to apply progstack
2023-01-23 14:40:44 +02:00
Aevann
8396126606
add dm images
2023-01-23 11:58:38 +02:00
Aevann
11aef2ae3d
make mutes propagate
2023-01-23 10:06:32 +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
35808e9fd7
use username instead of id in linking/delinking mod notes
2023-01-21 07:54:29 +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
d82835a968
same as last commit
2023-01-20 03:31:51 +02:00
Aevann
dd3dfa5197
make users list viewable by everypony
2023-01-01 16:52:16 +02:00
Aevann
044664a25e
get rid of useless tabs and spaces
2023-01-01 13:36:20 +02:00
Aevann
78351abc4c
clean up legacy stuff
2023-01-01 03:17:07 +02:00
Aevann
7a529e70f8
disallow chudding and banning ppl for negative days
2023-01-01 02:58:37 +02:00
Aevann
af59e82528
restore banning domains
2022-12-30 18:24:20 +02:00
Aevann
5c13700080
hide ghost identity leak in dev console
2022-12-30 18:22:57 +02:00
Aevann
e0e8eb3dd6
fix mod log links
2022-12-30 18:10:29 +02:00
Aevann
0bbe5d5ddd
show live commit to everyone
2022-12-30 15:32:58 +02:00
Aevann
909e3f5f29
use a cool flask feature i didnt know about
2022-12-29 12:39:10 +02:00
Aevann
1ec32c3895
combine 2 replace statements
2022-12-29 12:35:49 +02:00
Aevann
f7aa7d8dfd
better error messages
2022-12-28 11:50:48 +02:00
Aevann
53fcc2ac40
fix reverting admin actions showing wrong username in toast
2022-12-28 11:47:30 +02:00
Aevann
7b71c36e3f
require reason for banning
2022-12-28 11:31:27 +02:00
Aevann
181a660760
comment domains for now
2022-12-28 06:12:57 +02:00
Aevann
bf00867fe8
fix devrama settings
2022-12-27 15:35:14 +02:00
Aevann
68c00456f0
patch another janny xss
2022-12-27 08:11:44 +02:00
Aevann
5fdec63e8c
disallow changing site settings in devrama
2022-12-27 07:25:29 +02:00
Aevann
512c864327
fix xss on banning domains (only admins could use it)
2022-12-27 07:18:46 +02:00
Aevann
465565f26c
give error when domain ban reason too long
2022-12-27 07:02:14 +02:00
Aevann
84bff9cb44
fix
2022-12-27 06:32:53 +02:00
Aevann
d607e57c92
fixes
2022-12-27 06:24:25 +02:00
Aevann
0fb7418ad9
disable removing jannies in devrama
2022-12-27 06:01:57 +02:00
Aevann
644772d397
replace mention pfps too
2022-12-26 21:00:49 +02:00
Aevann
f37e1dc702
disallow jannoids from undoing chud awards
2022-12-26 04:38:32 +02:00
Aevann
c4fc37d23a
remove unnecessary stuff since im deleting olduser now
2022-12-25 08:15:27 +02:00
Aevann
829db5684b
perserve site stats on cache.clear()
2022-12-25 08:14:30 +02:00
Aevann
67f71997b6
move g.db.commit()
2022-12-25 08:13:07 +02:00
Aevann
c798eb5090
no point using gevent if the worker timeout is the same lol
2022-12-25 08:12:49 +02:00
Aevann
4a93626040
partially revert prev commit and fix it
2022-12-25 07:54:34 +02:00
Aevann
2f48039a4b
minor /move fix
2022-12-25 07:50:31 +02:00
Aevann
6ce3402726
migrate mentions too
2022-12-25 06:53:12 +02:00
Aevann
ed16d42377
actually redirect to old_id instead of new_id
2022-12-25 06:37:29 +02:00
Aevann
987db717d6
use gevent for moving account shit
2022-12-25 06:25:47 +02:00
Aevann
dc2c2fdc74
expand moving account shit
2022-12-25 06:02:33 +02:00
Aevann
715fecbb15
more detailed toast on banning/chudding
2022-12-25 00:45:01 +02:00
Aevann
7da9a224e9
don't cache user objects in redis
2022-12-24 18:53:13 +02:00
Aevann
9979efbf7a
make it possible to edit badge attributes without removing and re-granting them
2022-12-23 03:01:24 +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
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
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
3ae5292ce4
remove pcm from code
2022-12-21 14:42:41 +02:00
Aevann1
e832be4c18
restore badge rate limit
2022-12-19 15:55:39 +02: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
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
b6c01fb275
clicking twice shouldn't generate a mod log
2022-12-16 22:17:03 +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
7c389bbdfd
fix old mentions
2022-12-16 19:43:06 +02:00
Aevann1
bd8ac649d4
order punished listings by truescore instead
2022-12-15 20:31:58 +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
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
129f335363
better shadowban propagation
2022-12-13 23:12:58 +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
0376124eb0
clearer notifications for hole and admin actions
2022-12-13 19:11:26 +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: rDrama/rDrama#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
d59543891f
add BAN_EVASION_FULL constant
2022-12-11 20:56:04 +02:00
Aevann1
033e4dd35c
disable janny chudding in /h/chudrama
2022-12-10 15:06:30 +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
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
Aevann1
25cd81e326
dont allow admins to remove themselves
2022-12-09 07:58:44 +02:00
Aevann1
f95f4f2c97
simplify badge granting/removal
2022-12-07 21:03:06 +02:00
Aevann
18df70caab
allow JL3 to edit rules ( #39 )
...
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Reviewed-on: rDrama/rDrama#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
Aevann1
3971607aee
fix agendapostered wall comments
2022-12-05 05:08:06 +02: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: rDrama/rDrama#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
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
Aevann1
87ae34966b
badge perm shit
2022-11-30 23:15:10 +02:00
justcool393
0106a4e340
antispam: under siege mode
2022-11-30 11:37:35 -06:00
Snakes
9fcdd65d38
PCM: improve Kippy's inflationary ergonomics.
2022-11-29 17:18:33 -05: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