Aevann1
1367d944da
commit only when status code is 200
2022-06-26 07:37:36 +02:00
Aevann1
3b8188fd67
fixed version of d83d47e280
2022-06-26 03:22:05 +02:00
Aevann1
a1b137447e
Revert "reduce query volume #1"
...
This reverts commit d83d47e280
.
2022-06-26 03:12:31 +02:00
Aevann1
cff34fb3a4
reducing query volume, #2
2022-06-26 03:11:02 +02:00
Aevann1
d83d47e280
reduce query volume #1
2022-06-26 02:50:47 +02:00
Aevann1
c1d227e2b6
exclude poll bots from "simps for" lists
2022-06-25 22:24:47 +02:00
Snakes
aaf718c78c
Fix timeout in sanitize from link_fix_regex.
...
h/t to @official-techsupport for finding and help fixing this bug.
When given certain pathological input, `sanitize` would time out
(notably only on posts, rather than comments, perhaps due to the
longer maximum length of input). For example, using as input the
result of:
with open("test.txt", "w") as f:
for i in range(26):
f.write(f":{chr(ord('a') + i)}: ")
f.write('x' * 20_000)
We believe this to be because of some combination of the greedy
quantifiers and the negative lookahead before the match. The regex
was rewritten to (in theory) have much more linear performance.
2022-06-25 01:28:43 -04:00
Aevann1
c5c21da76f
validate colors
2022-06-24 19:32:31 +02:00
Aevann1
f34c4e1196
stop using app.config for our own stuff
2022-06-24 17:08:57 +02:00
Aevann1
fcf600cb35
fix this https://chapotraphouse.club/post/79771/workaholics-are-worse-for-society-than/2183396?context=8#context
2022-06-24 16:45:19 +02:00
Aevann1
9593dc58dd
move regex from helpers.const into its own helper file
2022-06-24 16:30:59 +02:00
Aevann1
6f6d01c1c6
actually use the get functions
2022-06-24 15:19:53 +02:00
Snakes
ce79b1d84b
PCM: lottery duration back to 1wk.
2022-06-23 22:40:51 -04:00
Aevann1
6463cbd1f4
"kike" slur filter modification
2022-06-24 00:33:39 +02:00
Aevann1
cff28b2070
add i.reddit.com to reddit_domain_regex
2022-06-23 22:00:49 +02:00
Aevann1
2c1d1aceff
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2178607?context=8#context
2022-06-23 21:43:49 +02:00
Aevann1
810e80c010
fix issue with snappy url archival
2022-06-23 21:41:23 +02:00
Aevann1
39cf7fc48b
refactor normalizing urls at runtime (I put the function in comment.py cuz there were weird import errors that i didnt wanna fix)
2022-06-23 17:47:57 +02:00
gooseman
6fec7d51d9
make me notified ( #308 )
2022-06-22 21:37:27 -04:00
Aevann1
e42227ab67
add glowie marseys
2022-06-23 02:34:37 +02:00
Aevann1
233f24c0c4
make reddit notifs look neater (again)
2022-06-23 01:45:09 +02:00
Aevann1
262138b542
make reddit notifications look neater
2022-06-23 01:16:59 +02:00
Aevann1
8f2c2885d2
include psot body in reddit mentions too
2022-06-23 00:40:53 +02:00
Aevann1
0e1177843e
remove the need for alert flag on sanitize()
2022-06-23 00:12:47 +02:00
Snakes
26273d0997
Revert "delete empty <a> tags to prevent exploits"
...
This reverts commit 5f78b4e365
.
This commit is breaking @-mentions in a great many contexts and
I'm not quite sure how to fix it right now.
2022-06-22 18:00:23 -04:00
Aevann1
5f78b4e365
delete empty <a> tags to prevent exploits
2022-06-22 23:12:02 +02:00
Aevann1
365d21ff9c
fix this https://i.imgur.com/F0OiGKH.png
2022-06-22 23:00:09 +02:00
Aevann1
e1d0269a81
fix 413 error for patrons
2022-06-22 21:12:12 +02:00
Aevann1
ebdda8c412
add poll_thread (fix)
2022-06-22 20:01:22 +02:00
Aevann1
414eb12410
add poll_thread
2022-06-22 20:01:00 +02:00
Aevann1
71d892a8a9
get file extension
2022-06-22 19:44:43 +02:00
Aevann1
20585ca543
add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes)
2022-06-22 17:51:19 +02:00
Snakes
e2cd25db67
WPD: limit hole creation to JL2+.
2022-06-21 01:20:21 -04:00
Snakes
4166b2d2f0
Content: chadsoy x2, more neo-gTLDs.
2022-06-21 01:03:33 -04:00
Marco Rebhan
3c5e2c9455
Include message text in off-site mentions
2022-06-20 18:32:46 -04:00
Snakes
f59556cac3
stats: add WAU based on activity timestamp.
2022-06-20 16:33:47 -04:00
Snakes
f6b6997f61
Persist activity timestamp to users.
2022-06-20 16:25:03 -04:00
Snakes
dee8eb5154
Replace loading.webp with new marseyloading.
2022-06-19 22:15:33 -04:00
Aevann1
7c5e8c04b0
add .dev tld
2022-06-19 22:32:12 +02:00
Aevann1
ef3fbbf520
adjusting greentext regex
2022-06-19 22:22:36 +02:00
Aevann1
f77a7b7cfc
fixed double quoting and triple quoting, etc
2022-06-19 20:21:25 +02:00
Aevann1
3eb788103c
allow only ascii characters in links ( https://rdrama.net/comment/2150032 )
2022-06-19 19:25:55 +02:00
Aevann1
d9cdbd0015
return to only allowing images/videos/audio
2022-06-19 18:56:45 +02:00
Aevann1
5ddde69ac9
greentext fix
2022-06-19 17:22:06 +02:00
Aevann1
45b1b61760
added greentext
2022-06-19 17:05:50 +02:00
Aevann1
06677d269e
refactor process_video
2022-06-19 16:49:44 +02:00
Aevann1
5d74693c22
try converting webm to mp4
2022-06-19 15:03:14 +02:00
Snakes
e5193cbd46
Fix mention sanitize when `g.v` not present.
...
This bug was discovered when lottery.check_if_end_lottery_task was
failing due to a stack trace thru end_lottery session < badge_grant
< send_repeatable_notifications < sanitize L208. In particular, when
`flask cron` (helpers/cron.py) executes, it does not set g.v, whereas
this code previously assumed that g.v : (None + User) and did not
check for its presence.
2022-06-18 21:22:04 -04:00
Aevann1
193615a441
make sure thumbnails are always lower than 8 MB
2022-06-18 23:11:53 +02:00
Aevann1
eba4452d79
fix 500 error
2022-06-18 22:41:00 +02:00