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
Aevann1
b34dd88560
remove legacy code in video upload (thx @everyone)
2022-06-18 18:23:10 +02:00
Aevann1
453d83856e
add .press tld
2022-06-18 18:07:57 +02:00
Aevann1
ccdabcba29
allow uploading of all types of files (using lain.la)
...
+ allow multiple file upload in bios and messaging admins
2022-06-18 17:53:34 +02:00
Aevann1
56f8cf793e
give visible bots a body column (so their comments are searchable)
...
+ don't sanitize zoz/longpostbot/aj comments
2022-06-18 17:37:01 +02:00
Aevann1
f60db1598d
replace "g.db.query" on pkeys with the much more efficient "g.db.get"
2022-06-18 02:57:23 +02:00
Aevann1
c01d53aa0d
make mentioning case-insensitive again
2022-06-18 00:03:23 +02:00
Aevann1
fae0bee0d9
Refactored mention sanitization (stolen commit from themotte)
2022-06-17 22:37:27 +02:00
Aevann1
a771596d25
videos bullshit
2022-06-17 22:23:04 +02:00
Aevann1
38c12209fb
move from os.sytem to subprocess.run, and fix bug
2022-06-17 22:16:22 +02:00
Snakes
a0d923e759
Use subprocess.check_call in media.py
2022-06-17 16:15:42 -04:00
Aevann1
30ed6daa26
fix RCE, thank you @Camas
2022-06-17 20:36:34 +02:00
Aevann1
35875d69f6
stop replacing "nitter.net" with "twitter.com" (to fix this shit https://chapotraphouse.club/post/77517/xueen-ezra-is-taunting-the-pigs/2132884?context=8#context )
2022-06-16 18:46:32 +02:00
Aevann1
0fb48bc380
make reddit_notifs_jl_min default to be 1
2022-06-16 16:15:24 +02:00
Aevann1
cab92d3c24
add marsey.cat to safe list
2022-06-16 14:36:43 +02:00
Snakes
46520a9f8c
Site-specific: change lotto for PCM.
2022-06-15 22:23:21 -04:00
Snakes
a8155d964a
Kitchen sink: emoji content, assert, assetcache.
...
These are all minor and uncontroversial enough it just felt gross
making multiple commits.
- Adds marseymummified.
- Changes the new `raise ValueError(...)` in badge_grant to
an `assert`.
- Expands assetcache to a convenient grab bag of JS files.
2022-06-15 17:17:31 -04:00
Snakes
7e54f858d3
Amend f8ae2a3d17c6: revert >= logic, fail loudly.
...
First, the apparent errors with >= 9 and 99 in the Marseys and
referrals code after the refactor are not actually bugs: they were
bug fixes mixed in with the refactor to fix an off-by-one.
Next, instead of failing silently on the `not user` branch in
badge_grant, we throw a ValueError. This retains the current
behavior where users get 500s to report while also enforcing the
assertion near the edge of the function.
2022-06-15 16:32:25 -04:00
Snakes
f8ae2a3d17
Amend 3bc98f0a6b84: minor logic, style.
2022-06-15 16:08:26 -04:00
Aevann1
3bc98f0a6b
extend TLSM's badge_grant() to almost all instanes where badges are granted
2022-06-15 21:33:21 +02:00
Aevann1
cdcef7d01d
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-15 15:32:55 +02:00
Aevann1
ff9c7c17fb
readjust prophet muhammed (ﷺ) slur filter
2022-06-15 15:32:52 +02:00
Snakes
dfe0c64d99
Deduplicate site-specific constants, add SNAKES_ID.
2022-06-14 23:39:37 -04:00
Snakes
3301e238d6
Content: alphabet emoji, christian list.
2022-06-14 14:37:45 -04:00
Snakes
c61375288f
Content: add TLD to sanitize.
2022-06-14 03:48:02 -04:00
Aevann1
0f49c8e32f
replace spaces with tabs
2022-06-13 20:33:25 +02:00
Aevann1
d8fff0bc72
Revert "Fix giant patting hand UI bug."
...
This reverts commit 7915eb8390
.
2022-06-13 20:31:28 +02:00
Aevann1
f4aa70cc74
Revert "Add user title coin cost parameter."
...
This reverts commit dece3fd460
.
2022-06-13 20:10:53 +02:00
Aevann1
07f2c0d2ca
make marsey counter work everywhere (not just comments)
2022-06-13 20:05:24 +02:00
Aevann1
6d1f7646ba
elaborate in lottershe message
2022-06-13 18:30:27 +02:00
Snakes
acde2c856b
Enable JL2 viewing shadowbanned comments.
2022-06-12 05:48:27 -04:00
Snakes
7915eb8390
Fix giant patting hand UI bug.
...
Despite being very fun, this fixes the recently discovered bug where
placing '#' or '!' within the 'pat:' suffix of a patted emoji causes
the enclosing <span> to not be given the proper CSS `display` or
`position`, leading to the hand being sized relative to the comment
bounding box rather than the emoji box.
This should be backward compatible. The only posts it wont fix are
existing ones with the giant hands. Main example being:
https://rdrama.net/h/slackernews/post/76302/
2022-06-12 02:22:38 -04:00
Snakes
f76b94b58d
Content: keywords updates.
2022-06-11 22:08:48 -04:00
Aevann1
85b4158d5b
"1 lottery tickets" -> "1 lottery ticket"
2022-06-11 16:52:20 +02:00
Aevann1
adefc09ae9
rename "dramacoins" to "coins", so that it works on other sites
2022-06-11 16:40:53 +02:00
Aevann1
cf83a996bd
let losers know how much coins the winner won
2022-06-11 16:40:14 +02:00
Aevann1
831344b723
small image embed improvements
2022-06-11 14:21:59 +02:00