Aevann1
1375372dfc
remove redundant slur filters (the "fuck" one affects all conjugations n-word)
2022-11-14 18:14:47 +02:00
Snakes
4aedbc9b2e
Fix imports for sub move frontlist invalidation.
2022-11-14 04:14:41 -05:00
Aevann1
e83be235ba
delete frontpage cache when moving posts
2022-11-14 07:49:23 +02:00
justcool393
84d9ed6655
antispam: sanity check
2022-11-13 21:48:52 -06:00
Snakes
b5b8b2927c
Expand blackjack handling pipeline.
2022-11-13 21:43:26 -05:00
justcool393
7c0763d81f
blackjack fixes
2022-11-13 20:07:13 -06:00
justcool393
39e7e61bcb
posts: make ghost threads cost DC again
...
who the hell disabled this
2022-11-13 19:52:32 -06:00
Snakes
188923a908
Change schizocel NOTIFIED_USERS (by request).
...
This is like 35 pings a day on average, but he seems to think it's
what he wants.
2022-11-13 17:39:02 -05:00
carp
91e19193c8
Conjugations of fuck ( #446 )
...
fixed
2022-11-13 17:18:22 -05:00
Snakes
d3f25739f0
Fix ratelimit_user on 3 routes, make proper dec.
2022-11-13 07:25:57 -05:00
Snakes
dd912addd1
chat: allow dev envs, clarify error message.
2022-11-13 06:43:08 -05:00
justcool393
681d8b482a
chat: impose truescore chat limit
2022-11-13 05:31:48 -06:00
justcool393
bf98444ead
push notifications: fix pusher causing errors on large unicode msgs
2022-11-13 05:12:05 -06:00
justcool393
f4f03f6582
all seeing eye: rework reddit notifs a bit ( #445 )
...
* all seeing eye: rework reddit notifs a bit
this should be more reliable and catch more of these when they're sent
* fix reddit notifs to properly use fewer queries
2022-11-13 06:00:05 -05:00
justcool393
f63237a9a2
fix ratelimit user to work with apps
2022-11-13 02:36:36 -06:00
justcool393
aa272729f1
default ratelimit and default ratelimit slower
2022-11-13 00:43:47 -06:00
justcool393
1e25421ac9
fixed deduplication and changed to 30/minute per @TLSM
2022-11-13 00:20:19 -06:00
justcool393
80d7d5281d
ratelimit_user() wrapper
2022-11-13 00:07:15 -06:00
Aevann1
983e8b21d1
update android app
2022-11-12 19:56:54 +02:00
Aevann1
eca45ecf16
update app url
2022-11-12 16:47:12 +02:00
justcool393
3569c06ce2
add .video
2022-11-12 05:05:08 -06:00
justcool393
8d1052105e
consistency
2022-11-12 03:39:05 -06:00
justcool393
619c0c837f
keep yourself safe
2022-11-12 03:38:38 -06:00
Aevann1
3ff9cd448f
adjust babe97e6d8
2022-11-12 11:29:08 +02:00
justcool393
dd3c8c6a32
visual fix: 37 is 00 but users don't know that
2022-11-12 03:09:42 -06:00
Aevann1
0796a17422
switch from hcaptcha to turnstile
2022-11-11 20:34:06 +02:00
Aevann1
9147427996
do what snekdaddy said
2022-11-11 20:01:23 +02:00
Aevann1
d5ab813499
dont give offsite notifs from redditors with "Bot" in the name
2022-11-11 19:18:41 +02:00
Aevann1
1a2138004d
ping idio whenever telegram is mentioned
2022-11-11 17:34:20 +02:00
Aevann1
05b7e79b76
remove the code i added for rdrama.com
2022-11-11 15:52:18 +02:00
justcool393
0cf37cfe5f
fix for worker timeout
2022-11-11 04:19:44 -06:00
justcool393
f5912bb4cc
we don't need bloody bs4 to get a bloody title
2022-11-11 04:19:43 -06:00
Aevann1
0a21411ee8
make "cocky" not get switched to "peepeey"
2022-11-11 11:41:07 +02:00
Aevann1
f07bb9e4c5
add lawlz to ping list
2022-11-11 11:32:54 +02:00
Aevann1
31edfa61f3
add transgirltradwife to boosted users
2022-11-11 11:31:32 +02:00
official-techsupport
babe97e6d8
Add Carp's quote to Snappy on CC posts ( #443 )
2022-11-11 03:45:28 -05:00
justcool393
dc5481128d
very important change
2022-11-10 23:27:52 -06:00
Snakes
803ce06712
Sanitize more intermediate values.
...
Frankly, this is almost entirely speculative. I don't see any viable
exploits through either of these codepaths. But automated tooling
doesn't see the implicit constraints on these values, so might as well
do more sanitization.
2022-11-10 23:17:25 -05:00
Snakes
8ab77eb0ee
Disable non-cosmetic awards on ghost posts.
...
Per poll result: https://rdrama.net/post/79285/-/3049889
Permits cosmetics and pin/unpin to be used; disables all others.
2022-11-09 18:07:23 -05:00
Aevann1
867f129b35
remove pizza-autovote leftovers
2022-11-09 23:28:45 +02:00
Aevann1
c066227d2b
remove pizza autovote
2022-11-09 23:27:16 +02:00
Aevann1
922a8e09c4
add /h/changelog to boosted holes
2022-11-09 23:07:46 +02:00
Aevann1
5cc833cf7a
boost sneks and jc
2022-11-09 23:06:38 +02:00
Aevann1
41e39a5c35
add impassionata to ping list
2022-11-09 22:59:10 +02:00
Aevann1
e40c9014c2
add pizza to boosted_users
2022-11-09 22:54:41 +02:00
Aevann1
d85ac23c3c
add BOOSTED_USERS
2022-11-09 22:53:24 +02:00
Aevann1
9e6324d7ca
remove ajax.cloudflare.com from CSP
2022-11-09 21:49:50 +02:00
Aevann1
321f32da34
add pizzashill to ping list
2022-11-09 21:13:34 +02:00
Aevann1
282762bef8
increase vamp award duration from 1 day to 2 days (but dont advertise that this time)
2022-11-09 21:09:38 +02:00
Aevann1
4f491d5ef7
reduce chud award cost from 2500 to 1000 (but not advertising that this time)
2022-11-09 21:08:25 +02:00
Aevann1
c8b4947fa4
tweak rdrama algo
2022-11-09 21:02:17 +02:00
Aevann1
d545548139
add 2 more boosted domains
2022-11-09 19:17:25 +02:00
Snakes
4f849c2c36
Fix userpage hat counter showing equipped.
...
Essentially, just needed to not reuse owned_hats.
2022-11-09 10:32:14 -05:00
Snakes
ebb3957f41
Eager load submission listing relationships.
2022-11-09 09:16:22 -05:00
Snakes
f1ceb5b079
Respect upper bound on award quantity.
2022-11-09 04:15:19 -05:00
justcool393
ffd9c73566
reduce slur filter down to necessary ones and partially implement what fish wants ( closes #432 )
...
signed off by snekfriend
2022-11-09 00:05:56 -06: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
c76bfa5ffc
fix 3 permapin limit not working
2022-11-08 11:41:16 +02:00
Aevann1
d146c595dd
add 2 more boosted sites
2022-11-08 10:08:10 +02:00
Aevann1
9f1061fedb
fix clearing cf cache
2022-11-08 10:08:10 +02:00
Aevann1
f2b4c527a4
amerikkka -> ameriKKKa
2022-11-08 06:26:35 +02:00
Snakes
c712fb4b9d
WPD: add POLL_THREAD.
2022-11-07 17:00:37 -05:00
Aevann1
09d14aca47
revert linefeed change on fish's request
2022-11-07 22:49:54 +02:00
Aevann1
f34c70c479
add 1 slur filter
2022-11-07 12:48:50 +02:00
Aevann1
8f59ab648a
add 3 more boosted sites
2022-11-07 09:27:10 +02:00
Snakes
7462477719
Owoify: exclude 'the' ↦ 'teh' replacement.
2022-11-07 02:23:15 -05:00
Aevann1
fd6176a948
remove "gosh"
2022-11-07 09:12:03 +02:00
Aevann1
7a8605ee4b
small change to slurs
2022-11-07 09:11:49 +02:00
justcool393
0fffa7efc0
rename truecoins to truescore
2022-11-06 23:04:34 -08:00
Aevann1
9b939b30a4
Revert "fixed 500"
...
This reverts commit ee4c534a92
.
2022-11-07 08:09:04 +02:00
Aevann1
5ee7eac502
fix root cause for 500
2022-11-07 08:08:53 +02:00
justcool393
ee4c534a92
fixed 500
2022-11-06 23:59:49 -06:00
Aevann1
a66add3897
make profanity filter actually usable
2022-11-07 07:35:20 +02:00
Aevann1
1adb6bf5f8
remove too estoric slurs
2022-11-07 07:21:34 +02:00
justcool393
a6227748a2
remove unused jinja constant
2022-11-06 20:06:37 -08:00
justcool393
cac2ef3160
patronage text
2022-11-06 20:06:37 -08:00
justcool393
d0462a1cc1
fix links for WPD
2022-11-06 20:06:37 -08:00
justcool393
657c00244a
sanitize, fix bug with update_flag, and update copy for low tsfriends
2022-11-06 20:06:37 -08:00
justcool393
502314ad3c
colors: filter properly
2022-11-06 20:06:37 -08:00
justcool393
4d2f429954
enable permanence code and fix some bugs with setting frontsize and some other things
2022-11-06 20:06:37 -08:00
justcool393
83fe77c039
settings: implement backend logic for permanent filters
2022-11-06 20:06:37 -08:00
justcool393
272e79b529
enable feature flag on testing environment
2022-11-06 20:06:37 -08:00
justcool393
72da55fd61
settings: implement front end for perma-filters
2022-11-06 20:06:37 -08:00
justcool393
3a989356dd
sorts and stuff
2022-11-06 20:06:37 -08:00
justcool393
32607ad058
settings: some changes and additions
...
settings: add theme
settings: move common controls to common
settings: add some consts
2022-11-06 20:06:37 -08:00
Snakes
1eaebd2ea1
Extend special API comment display to bussy-bot.
2022-11-06 19:49:50 -05:00
Aevann1
fbddf3e59c
fix snappy gambling
2022-11-07 02:08:50 +02:00
Aevann1
bbfb18da9a
change clearing cache terminology
2022-11-06 07:28:47 +02:00
justcool393
1d85fbe470
errors: exempt WPD from cutesy error messages
2022-11-06 00:25:22 -05:00
Snakes
38c3ba3889
Fix hole inactivity deletion to include subactions.
2022-11-06 01:08:24 -04:00
Snakes
9f7adb2614
Fix recent CPU spikes from image encoding.
...
Certain animated images take an exceedingly long time (~minutes) to
encode to WEBP using method=6. Such a file was obtained, and it
encoded significantly faster using method=5 and somehow turned out
smaller than the result generated with method=6. We switch now to
use method=5 so we stop getting occasional massive increases in
CPU load when multiple users upload animations at the same time.
Additionally, a timeout was added to the ImageMagick subprocess just
in case there are even more pathological files in the future. Better
to error out than have to get someone to kill the process.
2022-11-06 00:48:54 -04:00
justcool393
84f3805aa6
don't use periods in profanities
2022-11-05 19:16:29 -05:00
justcool393
0e7a7307e4
stats: add time
...
this is useful for knowing what anchor point stats is bound to
2022-11-05 19:15:13 -05:00
justcool393
3343b8487d
stats: rename `comments last_24h` to `comments last 24h`
2022-11-05 19:01:18 -05:00
justcool393
67189af6ec
add palestinian
2022-11-05 18:34:04 -05:00
carp
f03a34b308
filter and error message updates
...
removed unnecessary \W nonsense from profanity filter wherever possible, covered verb conjugations that could lead to spelling errors when filtered, added a few new rdrama-specific slurs filters, touched up a few error messages
2022-11-05 16:20:52 -07:00
Aevann1
d76fe63c7f
constantify image extensions and fix imgur .gif bug
2022-11-05 23:01:23 +02:00
Aevann1
5efdc43be5
fix 500 errors JC caused with a completely unnecessary refactor
2022-11-05 16:14:52 +02:00
justcool393
927e5a7cee
snappy: fix weird missing line
2022-11-05 02:19:57 -05:00
justcool393
c6675ff037
houses: make price a constant
...
houses: warn founders that switching houses will delete their founder status
2022-11-05 01:00:02 -05:00
Aevann1
299dbceeeb
only add reason if there's a reason
2022-11-05 04:48:04 +02:00
Aevann1
f37707805e
fix lawlz flair
2022-11-05 04:24:33 +02:00
justcool393
0943ee064c
rename is_cosmetic to cosmetic
2022-11-04 21:22:30 -05:00
justcool393
81ed8cfc81
awards: make cosmetic awards give 10% of the price to the recipient
2022-11-04 21:16:23 -05:00
Aevann1
47b89df619
change the chud theme terminology to a verb instead
2022-11-05 04:12:21 +02:00
Aevann1
bb6173f899
fix profanity filter
2022-11-04 20:48:52 +02:00
justcool393
3f457333b5
profanity: per fish request disable profanity filter everywhere but rdrama
...
feel free to revert this or whatever if discussed
2022-11-04 08:43:59 -05:00
justcool393
d2cb3caa54
revert prev commit
2022-11-03 22:54:14 -05:00
justcool393
0f462ba951
remove duplicate ping
2022-11-03 22:53:44 -05:00
justcool393
3301feb1a1
fix women who love women
2022-11-03 20:59:10 -05:00
justcool393
efceebf730
fix issue when you type in clbackside
2022-11-03 20:57:59 -05:00
justcool393
48f47935d6
nigga -> neighbor
2022-11-03 19:28:05 -05:00
carpathianflorist
87071b927c
slur, profanity, shibboleth upgrade
...
xoxo carp
2022-11-03 16:59:38 -07:00
justcool393
12fbe686d5
don't use regex in the slur filters for now
...
it doesn't work
2022-11-03 18:33:56 -05:00
justcool393
bf448a557e
fix *another* 500
2022-11-03 18:22:47 -05:00
justcool393
bed478276d
fix carp 500
2022-11-03 18:21:24 -05:00
justcool393
23c5a2ddb5
handle case where is None
2022-11-03 18:14:55 -05:00
justcool393
118a58c104
fix matches (PCRE uses weird 1 indexing)
2022-11-03 18:11:22 -05:00
justcool393
c6b1d90dd8
fix 500... again
2022-11-03 18:05:11 -05:00
justcool393
731c0cc83c
fix 500 and add r*pe to the bad words filter
2022-11-03 18:03:30 -05:00
justcool393
5f8a27636e
fix prev commit
2022-11-03 18:01:12 -05:00
justcool393
339d5fe8f1
users: add profanity filter to censor our gosh darned potty mouthes
2022-11-03 17:59:18 -05:00
Aevann1
6b068de522
remove insane bloat
2022-11-03 21:23:37 +02:00
Aevann1
07a12380de
accomodate alt domain
2022-11-03 17:29:14 +02:00
Aevann1
f151e2accd
stop fucking messing with my code, I had it at "4" for a reason
2022-11-03 17:24:30 +02:00
justcool393
753178a186
subs: fix exile behavior
2022-11-02 19:47:07 -05:00
Snakes
a310d43b10
Fix DMs not checking blocks.
2022-11-02 16:23:01 -04:00
justcool393
de30ee0ed4
kys
2022-11-02 14:33:31 -05:00
Snakes
ee315f236b
Revert "reduce chud award price from 2500 to 500"
...
This reverts commit e794eb93a7
.
2022-11-02 15:20:26 -04:00
Aevann1
bd779abc6e
go back to the old TLD system in sanitize
2022-11-02 09:08:02 +02:00
Aevann1
f73c6d46df
accomodate rdrama.com users
2022-11-02 08:31:04 +02:00
Aevann1
086643bf79
give_monthly_marseybux_task fixes
2022-11-02 08:19:25 +02:00
Aevann1
a2eaece906
verify patron level before giving monthly marsybux
2022-11-02 07:54:38 +02:00
Aevann1
1c536de93d
add commas to stats
2022-11-02 07:06:01 +02:00
Aevann1
17038e31da
remove 2 useless stats that took 3 and 9 seconds respectively
2022-11-02 06:59:23 +02:00
Aevann1
0008acbabe
make /stats slightly faster
2022-11-02 06:50:18 +02:00
Aevann1
d575abe1a7
Revert "debug /stats"
...
This reverts commit daf5fd9359
.
2022-11-02 06:45:17 +02:00
Aevann1
daf5fd9359
debug /stats
2022-11-02 06:32:38 +02:00
Aevann1
7a103d5143
fix 500 error
2022-11-02 05:23:46 +02:00
justcool393
69f3db9d27
marsify: fix marsify message
2022-11-01 20:12:52 -05:00
justcool393
26e134793a
newlines make @TLSM happy
2022-11-01 19:00:03 -05:00
justcool393
6caebac946
actions: move user-only actions to useractions, which gets rid of a circular dependency
2022-11-01 18:46:56 -05:00
justcool393
cd33fa9046
slots: fix numerous bugs with slots
...
slots: fix missing imports (x2)
slots: fix other user errors being returned to a potentially completely unrelated user
for example if Snappy was under the rehab effect and it pulled the slot, it'd abort and potentially cause other bugs down the chain, which makes no sense to a user or could leave a post in a wonky state
2022-11-01 18:03:53 -05:00
Aevann1
da5cc4093f
make snappy gamble again
2022-11-02 00:40:22 +02:00
justcool393
02efc44682
pins: reintroduce bug/feature at @Aevann1's request
...
the old behavior was actually to let admins bypass the limit, but this was buggy when the new multi pin thing was added and wouldn't let jannies make permapins if pins were at the limit
to make the code clear though, the permission name has been changed
2022-11-01 15:14:11 -05:00
Snakes
c95f5a537a
Fix "Copy link" action not including domain.
2022-11-01 06:06:45 -04:00
justcool393
6d636e4e42
use charge_account everywhere
2022-11-01 00:25:19 -05:00
Aevann1
972578e74a
allow poetrysperg to skip the linefeeds thing
2022-11-01 02:04:37 +02:00
Aevann1
7eaf257ca0
add 2 extra boosted domains
2022-10-31 22:33:06 +02:00
Aevann1
cc473795bf
make banned domains case insensitive
2022-10-31 16:33:11 +02:00
justcool393
b8542af64c
random fix
2022-10-30 20:10:33 -05:00
justcool393
2beef9f725
repost if you if you horse
2022-10-30 20:03:46 -05:00
Aevann1
df559c6af5
run archival through proxy
2022-10-31 02:05:53 +02:00
Aevann1
cdffb764bd
remove @jannies
2022-10-31 00:41:26 +02:00
Aevann1
c80e92f434
archive ghostarchive.org automatically
2022-10-31 00:39:37 +02:00
Aevann1
1032a3193f
fix bug with deflection
2022-10-30 23:27:53 +02:00
justcool393
d61eda8427
merge i think
2022-10-30 15:08:20 -05:00
Aevann1
62d3738e46
rename ADMIGGER variable to ADMIGGER_THREADS for clarity
2022-10-30 20:45:53 +02:00
Aevann1
6778ef14ad
diversity is our strength
2022-10-30 20:27:36 +02:00
Aevann1
915967ddd0
constantify BAN_EVASION_DOMAIN
2022-10-30 20:01:01 +02:00
Aevann1
b9c482712a
constantify file extensions
2022-10-30 16:55:43 +02:00
Aevann1
23883c530b
constantify TRUESCORE_DONATE_LIMIT
2022-10-30 16:18:42 +02:00
justcool393
b9f2a7123e
actions: move pizzashill autovotes to actions
2022-10-30 01:03:23 -05:00
Aevann1
9985e5c6f6
fix discord changelog channel
2022-10-30 02:43:55 +02:00
Aevann1
f09ec0ca17
restore slot gambling in comments
2022-10-30 02:36:23 +02:00
Aevann1
85abc39632
dedup converting game state to json
2022-10-30 02:32:40 +02:00
Aevann1
a18c2e24e9
fix bug in casino slots + change return value
2022-10-30 02:12:32 +02:00
justcool393
5f28a8f4e7
mottey drama is pretty good so yeah
2022-10-29 18:22:29 -05:00
Aevann1
c4063f081c
moved boosted sites to const.py
2022-10-30 00:53:42 +02:00
Aevann1
227d074da7
remove redundant "noreferrer"
2022-10-29 23:46:35 +02:00
Aevann1
06314f92b1
remove referrer from html tags
2022-10-29 23:42:30 +02:00
Aevann1
5b9a833926
fix fingerprinting
2022-10-29 23:28:33 +02:00
Aevann1
e794eb93a7
reduce chud award price from 2500 to 500
2022-10-29 19:12:39 +02:00
justcool393
3a6dfdf2de
listings: constantify PAGE_SIZE as 25
...
magic numbers are bad, do better next time
2022-10-28 22:20:48 -05:00
Aevann1
8517b85a49
replace "<BR>" with "<br>"
2022-10-29 04:07:43 +02:00
justcool393
1ee7ec323a
get lo user: fix 401 loop by clearing session on bad nonce
2022-10-28 20:07:39 -05:00
justcool393
35e2128dec
get: use function to get voted and blocked properties ( #425 )
...
* get: comments and posts: use get function from get.py
* fix prev commit
* move filter to correct place
* fix error and also log so i can figure out what's wrong
* comments: add some more trace logging
* should_keep_func always acts as return True if None is passed in
* remove logging code
2022-10-28 19:13:37 -05:00
Aevann1
5719688178
use tabs, not spaces
2022-10-29 01:39:31 +02:00
Aevann1
649fc2414d
disable adding admins on WPD
2022-10-29 00:14:59 +02:00
justcool393
cfeafea0d4
leaderboards: annotate the db param, fix posts and comments, and move const to const file, etc
2022-10-28 12:36:18 -07:00
Aevann1
fc6be1d959
per janny poll, make cosmetic awards 150 DC
2022-10-28 21:04:29 +02:00
Aevann1
b816973f38
ignore subdomains in banned_domains logic
2022-10-28 20:12:40 +02:00
Aevann1
180163e05e
remove bad slur filter
2022-10-28 19:35:37 +02:00
justcool393
68451513b0
get: use a single function to sanitize usernames
2022-10-27 21:39:57 -05:00
justcool393
ea46bafce2
get: List -> Iterable, we accept lists, sets, etc
2022-10-27 19:30:53 -07:00
justcool393
8a8e6f2233
get: functions to add blocks and vote properties
...
get: don't attempt to re-query if blocks or voted properties are already present
2022-10-27 19:30:53 -07:00
justcool393
16ba59d8b3
get: check stripped out names before querying the db and return None if graceful in other places
2022-10-27 19:30:53 -07:00
justcool393
5ff6fea4dc
get: add type annotations everywhere
2022-10-27 19:30:53 -07:00
justcool393
308e9cbbd6
get: remove weird vestigal load_parent part of get_comment
2022-10-27 19:30:53 -07:00
Aevann1
1a35e2ec6a
refactor banned domains
2022-10-28 00:37:29 +02:00
Aevann1
ad358650e1
remove retarded bullshit I wasn't consulted about
2022-10-27 19:53:08 +02:00
justcool393
c6d3f2a582
antispam: make bypass ids a set
2022-10-26 22:28:21 -05:00
justcool393
03cf8038f3
security: log invalid password attempts for admins
...
security: reduce login ratelimits from 1/second ->1/10 seconds
security: reduce login ratelimits from 200/hr -> 100/hr
security: reduce login ratelimits from 1000/day -> 500/day
2022-10-26 13:31:17 -05:00
justcool393
548f2613c7
pinprovements
2022-10-25 17:48:10 -05:00
Aevann1
e182ddc738
fix orientation (thx sneks my love)
2022-10-25 22:19:16 +02:00
Aevann1
16c7c07e7d
stop changing extension
2022-10-25 22:01:38 +02:00
Aevann1
100f546f67
strip metadata
2022-10-25 21:58:02 +02:00
Aevann1
3eb364b143
restore -coalesce
2022-10-25 21:00:09 +02:00
Aevann1
75ee126b61
specify method in imagemagick
2022-10-25 20:48:45 +02:00
Aevann1
0119c2b424
specify quality in imagemagick
2022-10-25 20:45:32 +02:00
Aevann1
b92aaa972e
remove 'aev' mentions
2022-10-25 18:20:26 +02:00
Aevann1
b9d998bdbe
use imagemagick in all cases
2022-10-25 17:41:23 +02:00
Aevann1
3b16c8f3e3
close image files after ur done
2022-10-25 17:41:23 +02:00
justcool393
d8070625d8
split hosts by comma
2022-10-24 15:28:43 -07:00
gooseman
67826a52e0
remove hw
2022-10-24 15:28:43 -07:00
gooseman
8b98eabbb9
simultaneous hosts
2022-10-24 15:28:43 -07:00
justcool393
67a6676bf8
env: don't crash the server if TELEGRAM_LINK isn't present
2022-10-24 15:58:23 -05:00
justcool393
0f8ecd48dc
antispam: add antispam bypass
2022-10-24 12:27:25 -05:00
justcool393
dbb7296dd7
stickies: allow JL2 to sticky post
...
stickies: unpin on removal
stickies: don't allow removed posts to be stickied
2022-10-23 17:17:49 -05:00
Snakes
7e4b35bc78
Disable Homoween awards on frost.
2022-10-23 17:53:12 -04:00
Snakes
1496f43ba6
Port Homoween 2022 awards into frost const.
2022-10-23 17:49:12 -04:00
justcool393
0a9e7b3ef4
lawlzposts: don't allow unpin awards
...
lawlzposts: disable if pins feature flag is off
2022-10-23 12:14:27 -05:00
justcool393
ec1affcf85
posts: add MasterLawlz specific actions
2022-10-23 12:01:00 -05:00
justcool393
ff84f32e45
make stats charts tight
2022-10-23 10:46:03 -05:00
justcool393
c8324f87ff
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-23 10:07:14 -05:00
justcool393
09e5bb6b03
ping me with jc and off site mention update
2022-10-23 10:06:59 -05:00
Aevann1
14b0d77f7a
reduce normal cosmetic awards from 500 back to 300
2022-10-23 16:41:57 +02:00
Aevann1
834f70fd2d
only check duplicates for banners, sidebar images, and badges
2022-10-23 11:27:40 +02:00
Aevann1
c8f24eab1b
fix videos
2022-10-23 10:57:13 +02:00
Aevann1
0f4462ca5b
increase pin limit to 4 on WPD
2022-10-23 10:48:24 +02:00
justcool393
a2c16534a4
admin pings: truescore requirement and exclude shadowban and make a permission
2022-10-22 19:45:15 -05:00
Aevann1
c4103cfaf4
add @jannies to notify all jannies
2022-10-23 01:50:56 +02:00
Aevann1
27c1970575
add a "!" in PCM welcome message
2022-10-23 01:02:31 +02:00
Aevann1
2dcf6bcb0f
make sure all images with resize parameter are under 500KB
2022-10-22 17:24:07 +02:00
Snakes
e9b648dcb5
Support for multiple WPD sites on one master.
2022-10-21 19:33:43 -04:00
justcool393
c4b2c6f3f5
html head refactor ( #412 )
...
* start html head refactor
this is a bit of a doozy tbh and will probably take a while. the templates are very highly duplicated but not duplicated enough to be an easy little thing
oh well, so it goes.
* some easier html head ones
* add chat, html_head, sign_up_failed_ref, sign_up, submit
* CSP: put it in const.py instead of this weird thing we did before
* fix syntax error
* better call the actual macros
* fix prev commit
* import into settings2
* fix prev commit
* set CSP properly if localhost
* some title fixes i think
* login page
* fix prev commit
* hacky thing to get titles to work i think
* {{stylesheets()}}
* fix prev commit
* title stuff
* cries uncontrollably
* submission fixes i think
* fix prev commit i think
* submission fixes ekfjdhfkdjf
* submission fixes 4
* this may fix submissions idk tbh
* default template: make it a little better on post pages
* default template: some efficiency
2022-10-21 13:39:45 -05:00
Aevann1
360aa99fe1
small adjustments
2022-10-21 17:11:12 +02:00
Aevann1
81a929c2e1
on harpooner's request, allow hole jannies to exile JL3
2022-10-21 13:32:21 +02:00
justcool393
37af363a47
remove duplicate message
2022-10-20 19:31:03 -05:00
justcool393
790a569072
don't check if body is empty
2022-10-20 19:29:20 -05:00
justcool393
8fe73cb68e
refactor blackjack a bit
2022-10-20 19:28:05 -05:00
justcool393
578e1896fd
sanitize: strip out html comments
...
they're unnecessary and never get rendered
2022-10-20 18:06:55 -05:00
justcool393
360cff7e8f
add post bypass checking perm
2022-10-20 17:51:29 -05:00
Aevann1
3c3950adb0
change video tags
2022-10-20 22:26:43 +02:00
justcool393
cb35480ee6
sanitize: replace cuneiform ban with an overline ban
2022-10-20 09:44:32 -05:00
Snakes
9b81bc8a9d
WPD: expand post title editing to JL2+.
2022-10-20 10:42:52 -04:00
Aevann1
e16ebf8749
fix 500 error
2022-10-20 00:28:07 +02:00
Aevann1
e4fb158125
update the WPD app
2022-10-19 23:42:27 +02:00
Aevann1
9efc0f0a68
unify email regex
2022-10-19 12:39:03 +02:00
Aevann1
887ab766a5
fix 500 error when resetting password
2022-10-19 11:36:13 +02:00
Snakes
94e130febd
Fix video filesize check for patrons.
2022-10-18 22:15:57 -04:00
Aevann1
b81eceead5
fix prev commit
2022-10-18 19:25:28 +02:00
justcool393
8a8efeaf75
ratelimiting: add 1/second to post ratelimit
2022-10-18 06:51:08 -05:00
Aevann1
465160dbe6
dont include SITE_FULL in post urls
2022-10-18 13:09:53 +02:00
Aevann1
cdfece62cf
decrease y'all seeing eye's price from 10k to 1k
2022-10-18 12:31:50 +02:00
Aevann1
001ff55980
small change to post_rate_limit (cuz it catches failed submissions)
2022-10-18 12:21:10 +02:00
Snakes
599cab7365
PCM: temporarily re-enable awards; some cleanup.
2022-10-17 21:55:07 -04:00
justcool393
39545e556f
WPD: disable /logged_out on .co, fixing infinite loop
...
WPD: fix bad asset link
WPD: redirect on migration login and failed migration login
2022-10-17 19:11:50 -05:00
justcool393
d07a6cbc08
remove bot mentions
2022-10-17 14:44:44 -05:00
justcool393
95f4f42ed2
syntax
2022-10-17 14:34:23 -05:00
justcool393
30b51135c4
another one
2022-10-17 14:32:47 -05:00
justcool393
edc3b0c84e
co to tv
2022-10-17 14:32:05 -05:00
Aevann1
44fca7f086
ripbozo
2022-10-17 21:13:33 +02:00
justcool393
0e840a4ddb
add r/Drama to reddit notifications
2022-10-17 12:46:30 -05:00
Aevann1
80c5ed8428
fix slur filter
2022-10-17 19:18:51 +02:00
Aevann1
bf859b0e3a
sneed
2022-10-17 18:58:15 +02:00
Aevann1
ae7bc6dd9f
change name
2022-10-17 18:46:42 +02:00
Aevann1
9204b8bebd
remove rarely-seen slur filters
2022-10-17 10:32:58 +02:00
Aevann1
f292069c3e
small adjustment to glowop
2022-10-16 20:27:37 +02:00
Snakes
dca21741c3
Discord removal: fix syntax error, asst'd cleanup.
2022-10-16 09:03:08 -04:00
justcool393
aa508fc076
remove discord
2022-10-16 05:42:52 -07:00
justcool393
be055d1d82
fix "52yr ago" bug
2022-10-15 23:57:55 -07:00
justcool393
32a4693da9
fix a couple of potentially rare 500s
2022-10-15 14:35:24 -07:00
justcool393
60284daa8e
replace all of the duplicated age strings with make_age_string
2022-10-15 11:11:43 -07:00
Snakes
ed2b6938ba
Amend 35fd90c9c: calc_users gets g but not g.agent.
2022-10-15 07:33:25 -04:00
Snakes
35fd90c9ca
Amend c95e33831: even fewer globals than expected.
2022-10-15 07:27:26 -04:00
Snakes
c95e33831c
Check for globals in calc_users; fix error pages.
2022-10-15 07:23:29 -04:00
Aevann1
f2225e700a
change MAX_IMAGE_SIZE_BANNER_RESIZED_MB into MAX_IMAGE_SIZE_BANNER_RESIZED_KB
2022-10-15 12:37:55 +02:00
Aevann1
4f8f8db54f
reduce allowed size for banners/sidebar/badges from 1MB to 0.5MB
2022-10-15 12:13:23 +02:00
Aevann1
6465982580
decouple v.last_active from the calc_users
2022-10-15 12:08:14 +02:00
justcool393
39aa59a37a
add g.is_api_or_xhr so we can use it where we want to give API output
...
* also use v.client for strict API clients
2022-10-15 02:11:36 -07:00
Aevann1
0d0cde1d2b
fix prev commit
2022-10-15 09:33:58 +02:00
Aevann1
c24851dbb3
only calculate users when we actually need them
2022-10-15 09:31:24 +02:00
Snakes
683d562058
Fix pruning of {SITE}_loggedin/out dicts.
...
For the past week, we noticed a gradual increase in CPU usage and
request times. Use of a sampling profiler revealed the time waas spent
in serializing/deserializing data stored in Redis. In particular, the
user counter dicts were filtered for calculation of the loggedin/out
counters, but the filtered versions were never stored.
To make concurrency safe, we still filter on every request, but at
least the resting data will eventually be appropriately filtered,
and this data is non-critical regardless.
2022-10-14 17:41:26 -04:00
justcool393
419ed61dd3
discord ids as constants
2022-10-14 11:46:39 -07:00
Aevann1
afd11e376f
fix 500 error
2022-10-14 19:15:29 +02:00
Aevann1
77312317f3
get rid of Boolean columns for permenant awards
2022-10-14 18:59:49 +02:00
justcool393
36b370dd14
use comment length for snappy, not post
2022-10-14 06:19:47 -07:00
justcool393
2dd74d3acd
don't constantly check for reposts when it's obvious there can't be one
...
we currently spam the /is_repost api on every single character change in the URL box even though there is no way these URLs would ever be submitted to the site
introducing a frankly conservative limit to where we start actually pinging both the api and (on the backend) the database for reposts may help in some cases
the current constant was chosen by taking the length of "http://" and adding 2 to it
2022-10-14 03:27:45 -07:00
Aevann1
948bd21f9b
Revert "minor change in sorting_and_time"
...
This reverts commit 3a3cb0da4d
.
2022-10-13 18:21:26 +02:00
Aevann1
3a3cb0da4d
minor change in sorting_and_time
2022-10-13 18:21:00 +02:00
Aevann1
9f24a8ddc5
remove annoyance
2022-10-13 14:02:31 +02:00
justcool393
fb150dab8e
use constant instead of literal 5
2022-10-13 00:58:33 -07:00
justcool393
c56e45aa57
create cloudflare helper
2022-10-13 00:55:15 -07:00
Aevann1
cdff11424f
use charge_account everywhere
2022-10-12 18:33:00 +02:00
justcool393
fe9064a9b7
update get.py redux
2022-10-12 08:40:43 -07:00
justcool393
5c03e5a7a4
Update get.py
2022-10-12 08:33:49 -07:00
justcool393
c67406b84b
use site specific patron name
2022-10-12 03:45:45 -07:00
justcool393
b92535c286
pings bypass permission
2022-10-12 02:36:29 -07:00
justcool393
db9b37de40
type hints for get functions :)
2022-10-12 02:22:13 -07:00
justcool393
96879894af
remove 417 (use 409) and reword 418 msg
2022-10-12 02:00:18 -07:00
justcool393
5377472146
show correct max video size
2022-10-12 01:53:23 -07:00
justcool393
ca7fa50419
remove 414 and change 413 msgs
...
* use 413 for videos and put explanatory text there
* add style text for 413 as well
2022-10-12 01:52:08 -07:00
Snakes
166e33dc38
Clarify architecture of sort_objects.
2022-10-12 04:05:26 -04:00
Aevann1
2aa281e8c8
refactor sorting again (untested)
2022-10-12 09:03:28 +02:00
Aevann1
925ec12141
more shadowban refactor
2022-10-12 08:53:32 +02:00
Aevann1
81b2e04ff7
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 08:40:04 +02:00
justcool393
dcd875c40c
max image and video size are constants now
...
* the error pages still need to be fixed
2022-10-11 23:27:17 -07:00
Aevann1
e1ee9a69e4
refactor seeing shadowbanned shit (untested)
2022-10-12 08:24:30 +02:00
Aevann1
318a20250c
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 08:10:15 +02:00
Aevann1
b1abd33835
refactor sorting
2022-10-12 08:10:11 +02:00
Snakes
baf0386d8c
PCM: re-enable gambling.
2022-10-12 02:08:20 -04:00
justcool393
501fbbf5d3
move antispam code to actions
2022-10-11 22:34:55 -07:00
Aevann1
0cb2a56f5c
fix last commit
2022-10-11 19:28:08 +02:00
Aevann1
a9dd6bf1e7
add a media check
2022-10-11 19:26:38 +02:00
Aevann1
b544171449
store the fullpath in the media table
2022-10-11 19:20:15 +02:00
Aevann1
466867afd1
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-11 18:41:12 +02:00
Aevann1
e3a3cbd358
add "hot" comment sorting
2022-10-11 18:41:09 +02:00
justcool393
63215b8888
move messages to constant file and also remove special logic for PCM, instead opting to modify the constant instead
2022-10-11 08:40:19 -07:00
Aevann1
06c858b6cf
fix 500 error
2022-10-11 15:43:57 +02:00
Aevann1
998b966f2b
remove unnecessary shit in wrappers
2022-10-11 15:19:55 +02:00
justcool393
01138ab592
bypass read only mode perm
2022-10-11 00:54:02 -07:00
justcool393
456dd43bba
replace "if not FEATURES" with wrapper
2022-10-11 00:33:23 -07:00
justcool393
ab2ab2ddf9
improve wrappers so they can be used with others
2022-10-11 00:33:23 -07:00
justcool393
940f815f84
loudly tell users they can't do this while suspended
2022-10-10 23:15:09 -07:00
justcool393
75e593da00
Revert "feature required wrapper"
...
This reverts commit 8700bcc5ee
.
2022-10-10 02:54:47 -07:00
Aevann1
30813fc719
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-10 11:06:32 +02:00
Aevann1
00b045c464
tweak env again
2022-10-10 11:06:27 +02:00
justcool393
f872f734ec
constantify a bunch of things
...
* sign up follow id is now a thing (if not specified will just msg carp instead)
* notification thread id is also a constant now
* blackjackbtz id is a constant, used for i think special PM handling
2022-10-09 23:37:42 -07:00
justcool393
8700bcc5ee
feature required wrapper
2022-10-09 23:16:05 -07:00
justcool393
1111932b8c
remove weird random check if it's an issue we can readd it
2022-10-09 13:13:55 -07:00
justcool393
6d5dcaec9a
fix long post bot lol
2022-10-09 09:40:20 -07:00
justcool393
a9064e7828
newline at eof
2022-10-09 06:52:41 -07:00
justcool393
56e800fd9d
move basedbot to actions as well
2022-10-09 06:49:08 -07:00
justcool393
64cd774390
ree
2022-10-09 06:29:58 -07:00
justcool393
63c7fe0c29
move zozbot and longpostbot into the actions helpers
2022-10-09 06:28:18 -07:00
justcool393
87fd8ee57a
comment sanity checks and constantization
...
* make HTML body length a constant and use it
* abort before uploads and other tasks if comment level is too deep
* what a nightmare of two functions, please do better next time
2022-10-09 05:54:46 -07:00
justcool393
8ea52ba95c
constantify comment body length limit and transfer limit
2022-10-09 00:20:28 -07:00
Aevann1
b515b8bd15
change DOMAIN env var to SITE (for consistency)
2022-10-08 04:06:55 +02:00
Aevann1
cbbcbd570a
Revert "fix WPD"
...
This reverts commit 6750a156fd
.
2022-10-08 03:19:16 +02:00
Aevann1
6750a156fd
fix WPD
2022-10-08 03:14:54 +02:00
Aevann1
2a638f71c3
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-08 02:44:06 +02:00
Aevann1
cfd4b6399f
use mailgun again
2022-10-08 02:44:02 +02:00
Aevann1
aa8e7055fb
rework env vars a bit
2022-10-08 02:43:04 +02:00
Snakes
7ea61f423d
PCM: disable gambling; extend FEATURES['GAMBLING'].
2022-10-07 20:31:46 -04:00
justcool393
48384ba8e5
convert a couple of the old constantified permissions to the new system
...
i don't want to break something so i'm keeping one of them for now but it just links
2022-10-07 01:50:20 -07:00
justcool393
26fbf726a4
remove unused permission
2022-10-06 23:24:00 -07:00
justcool393
e372158729
Merge branch 'frost' into permissions-refactor
2022-10-06 19:05:42 -07:00
Aevann1
01071a20e8
add banner_thread to PCM
2022-10-07 03:32:08 +02:00
Aevann1
6bdb0d792b
fix my mentions
2022-10-06 21:52:57 +02:00
Snakes
60e4e92e90
Suppress ffmpeg progress output, fix trailing flag.
2022-10-06 15:17:36 -04:00
Aevann1
3cf838af29
fix thumbnails and add opera-proxy to docker
2022-10-06 21:07:45 +02:00
justcool393
d4b3e4ac5b
fix some stuff in the user page template including add mute to user page properly
2022-10-06 03:05:18 -07:00
justcool393
2b51b13dcc
user moderation tools visible permission
2022-10-06 02:37:41 -07:00
justcool393
eeca9617bd
post comment moderation tools visible permission
2022-10-06 02:33:46 -07:00
Snakes
24167b1d09
Fix thumbnail_thread passing uploader to media.
2022-10-06 05:15:21 -04:00
justcool393
8db6b3f7fd
improve POST_TO_CHANGELOG check
2022-10-06 02:09:46 -07:00
justcool393
397cf68abd
view vote buttons on user page
2022-10-06 01:14:32 -07:00
justcool393
8bed8c64e8
rearrange and rename a couple of permissions
2022-10-06 00:55:54 -07:00
justcool393
02d0e2043e
rename APPS_MODERATE to APPS_MODERATION
2022-10-06 00:40:36 -07:00
justcool393
6e33531be3
remove a _FOR_
2022-10-06 00:38:33 -07:00
Aevann1
79960d58be
ping me for "aev"
2022-10-06 09:33:47 +02:00
justcool393
767093d060
add perms for things we don't really know what they are
2022-10-06 00:32:05 -07:00
Aevann1
96f4f8499f
fix 500 errors
2022-10-06 09:30:38 +02:00
justcool393
039fa606d6
streamer permissions
2022-10-05 23:22:42 -07:00
justcool393
8d51980dca
rename cache purge things to include prefix
2022-10-05 23:21:04 -07:00
official-techsupport
4e23161f11
Re-enable showmore_regex for Snappy ( #389 )
...
* Re-enable showmore_regex for Snappy
* showmore a bit more aggressively
2022-10-06 02:17:28 -04:00
justcool393
4fdccc331a
view last active in template
2022-10-05 23:02:27 -07:00
Aevann1
3a4aa3f3af
fix bugs
2022-10-06 08:00:41 +02:00
justcool393
6911101e29
post bet distributions
2022-10-05 22:59:27 -07:00
justcool393
53a5343a55
use ban permission for muting and also add a user home permission (wonder if should be the same as mop perm)
2022-10-05 22:54:48 -07:00
Aevann1
42344cb76f
add media table
2022-10-06 07:54:04 +02:00
justcool393
f2f954e0dd
add note about marseybux printing disabled on rDrama
2022-10-05 22:50:42 -07:00
justcool393
047013f92b
patron perm and also move them around
2022-10-05 22:48:55 -07:00
justcool393
0c0fa68cb4
title change permission
2022-10-05 22:45:44 -07:00
justcool393
1220d06eab
some admin perms and also fix search
2022-10-05 22:37:50 -07:00
justcool393
20bd38b5d3
add oauth permissions
2022-10-05 22:33:55 -07:00
justcool393
dc5a132583
mop visibility, WPD notifications, and a fix with shadowbans
2022-10-05 22:25:45 -07:00
Aevann1
1d666b3569
fix prev commit
2022-10-06 07:23:05 +02:00
Aevann1
4563a2b18a
fix prev commit
2022-10-06 07:16:24 +02:00
justcool393
38f3c7ed55
view sorted admin list and message blocked users
2022-10-05 22:16:09 -07:00
Aevann1
168f18893f
change wording of an error msg
2022-10-06 07:08:48 +02:00
justcool393
68851ed986
profile views and modmail/hole creation notifications
2022-10-05 22:07:38 -07:00
Aevann1
f52d6258ae
fix prev commit
2022-10-06 07:07:24 +02:00
Aevann1
d832e195a7
same as last commit
2022-10-06 07:05:03 +02:00
justcool393
f531b12727
alt seeing eye
2022-10-05 22:01:02 -07:00
justcool393
d78d57ec79
all seeing eye permission
2022-10-05 21:59:06 -07:00
Aevann1
304c65d303
convert webm to mp4
2022-10-06 06:54:05 +02:00
justcool393
5739f128cf
club and chudrama permissions
2022-10-05 21:52:15 -07:00
justcool393
06f88e8a4a
post based permissions mostly
2022-10-05 21:45:54 -07:00
justcool393
57b08043a4
notification settings and admin setting
2022-10-05 21:40:02 -07:00
Aevann1
0c8ead2e7d
stop using lain.la
2022-10-06 06:31:08 +02:00
justcool393
3f1cc45a2b
settings, cache, and domain ban permissions
2022-10-05 21:26:15 -07:00
justcool393
9bb7b3758f
distinguish stuff
2022-10-05 21:19:11 -07:00
justcool393
44bf01151f
apparently this thing likes to commit without committing half of it ok
2022-10-05 21:03:40 -07:00
Snakes
3c261f19cd
Add JC to NOTIFIED_USERS.
2022-10-05 23:59:33 -04:00
justcool393
a3b9d71e70
user badge permissions
2022-10-05 20:50:02 -07:00
justcool393
65c75ba5da
club permissions
2022-10-05 20:47:42 -07:00
justcool393
4aef026594
add and remove admin permissions
2022-10-05 20:37:18 -07:00
justcool393
3cf972ef9a
merge permission
2022-10-05 20:33:23 -07:00
justcool393
c813f52c1a
view active users perm
2022-10-05 20:29:14 -07:00
justcool393
1a0785d497
add perm for kippy's marseybux printer
2022-10-05 20:26:39 -07:00
justcool393
c0f753e101
asset submissions permissions
2022-10-05 20:15:10 -07:00
justcool393
c2109fd611
modmail viewing perm
2022-10-05 20:10:57 -07:00
justcool393
d709334180
lottery permissions
2022-10-05 20:09:20 -07:00
justcool393
f5996afc5a
add some perm requirements and add agendaposter thing
2022-10-05 20:04:38 -07:00
justcool393
970a7adfbd
buy ghost award permission
2022-10-05 19:57:31 -07:00
justcool393
0349862531
view pending submitted marseys and hats perms
2022-10-05 19:55:54 -07:00
justcool393
ae0c215af3
...
2022-10-05 19:51:44 -07:00
justcool393
43f137208a
bypass pin limit perm and also fix a shadowban perm
2022-10-05 19:51:30 -07:00