Aevann1
654ddc4157
re-refactor normalize_url
2022-06-10 22:02:15 +02:00
Aevann1
6800d33019
replace streamable links with full-size version
2022-06-10 16:35:09 +02:00
Aevann1
dcf5207e83
all 'app' tld (for discussions.app)
2022-06-10 16:04:49 +02:00
Snakes
5fb358a32a
Add more TLDs to sanitize.
2022-06-03 17:01:32 -04:00
Snakes
2008c09136
Add 'filter' to allowed_styles.
2022-06-02 06:14:20 -04:00
Snakes
cf46b8b3fe
Refactor e81edb711d
for modularity.
2022-05-30 00:30:10 -04:00
Aevann1
e81edb711d
fixed this https://rdrama.net/post/72013/-/2010109?context=8#context
2022-05-30 06:12:51 +02:00
Aevann1
6b6e2e8253
sfd
2022-05-27 20:28:54 +02:00
Aevann1
386db76c10
crgd is a king
2022-05-25 20:29:22 +02:00
Aevann1
de176280c8
e
2022-05-25 17:42:30 +02:00
Snakes
1c7458e111
Sanitize: modularize normalize_url, fix streamable.
...
Originally prompted by https://rdrama.net/post/18459/-/1984609 which
noticed that streamable.com/e/ links as posts would have another e/
added to them. This was in spite of logic in posts.py api_is_repost
and submit_post designed to specifically counteract this.
Proximal cause was a copypasta'd url.replace(...) chain which
caused the mistake before the streamable-specific logic had a chance
to avoid making it.
Solution: remove the streamable replacement from the chained statement
and create `helpers.normalize_url(url)` to get rid of the copypasta.
2022-05-25 04:43:16 -04:00
Snakes
7ead30014c
Upgrade bleach to 5.0.0.
2022-05-24 20:28:36 -04:00
Snakes
8c3b6cece1
Add 8-ball answers, like fortune & factcheck.
2022-05-24 19:08:41 -04:00
Snakes
d0d029a78a
sanitize: Add more neo-gTLDs to TLDs tuple-list.
...
Per https://rdrama.net/post/70341/-/1976650 added more gTLDs that
are actually desired by site users.
Also, hard wrapped the `TLDS` and `allowed_tags` tuple-lists at a
100char hard ruler for my sanity.
2022-05-24 15:16:55 -04:00
Snakes
a56ebc39dd
Add 'moe' to sanitize TLDS for linkifier.
2022-05-23 16:06:01 -04:00
Aevann1
15418ec1e6
sfd
2022-05-23 21:20:58 +02:00
Aevann1
649f8d5323
vdffsd
2022-05-23 00:45:04 +02:00
Aevann1
0a74a98ec5
big ass commit
2022-05-23 00:15:29 +02:00
Aevann1
37a6ce39f5
fixing https://rdrama.net/post/69817/tfw-you-will-never-troll-harder/1961118?context=8#context
2022-05-22 12:20:11 +02:00
Snakes
76fd1342f3
Fix @mention replacement.
...
Comments of the style e.g. "@TLSM / @TLSM2" would mistakenly be
`sanitize`d to have identical links only on "@TLSM", the latter
instance having a dangling 2 on the end. It seems this is purely an
issue with text formatting; alerts.py @ NOTIF_USERS had no such
issues. The root cause appears to be partly an optimization and
partly the use of str.replace without a count limit.
2022-05-20 17:04:36 -04:00
Aevann1
15f0b963c7
fc
2022-05-18 20:45:04 +02:00
Aevann1
c3cce7aaa5
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-05-17 21:58:43 +02:00
Aevann1
3491c9187d
pls review
2022-05-17 21:58:41 +02:00
HappyDOGE
e7349aec98
Fix <a> tag link injection, don't throw a ValueError when href attr is missing, properly count marseys (their usage wasn't counted for 20 days :marseygasp:) ( #265 )
2022-05-17 20:59:07 +02:00
Snakes
42e0b77ca7
Add <audio> support to sanitize.py.
...
Parallels the decisions made with <video>.
2022-05-15 18:47:37 -04:00
Aevann1
50b1ed8aa0
fds
2022-05-15 10:45:57 +02:00
Aevann1
ed0d225554
sfd
2022-05-14 15:11:11 +02:00
Absinthe
c3ae481048
#factcheck ( #261 )
...
Like #fortune but to check facts.
2022-05-12 16:21:11 +02:00
Aevann1
9a7c8f813f
sfd
2022-05-08 11:06:01 +02:00
Aevann1
1b86af8def
fg
2022-05-07 07:28:51 +02:00
Aevann1
6b10d097a2
mn
2022-05-05 01:09:46 +02:00
Aevann1
53702d5f13
dup
2022-05-04 05:14:14 +02:00
Aevann1
095e5cb0af
sanitize
2022-05-03 21:07:15 +02:00
Aevann1
e73fcbd56a
sfd
2022-04-29 17:17:14 +02:00
Aevann1
d0116ff2f8
sfd
2022-04-28 01:16:24 +02:00
Aevann1
952fdec513
fds
2022-04-27 18:28:00 +02:00
Aevann1
47978226e1
df
2022-04-27 17:15:41 +02:00
Aevann1
8296a580d1
xcv
2022-04-27 17:09:37 +02:00
Aevann1
583765f259
czx
2022-04-27 17:03:25 +02:00
float-trip
d85951d912
add :@userpat: emojis ( #231 )
...
* refactor emoji formatting
* add user patting
2022-04-27 16:46:47 +02:00
Aevann1
e60fe0bcd6
gf
2022-04-25 16:51:40 +02:00
Aevann1
e3b00f6c89
fsd
2022-04-22 17:17:10 +02:00
Aevann1
74a291e975
fds
2022-04-20 00:24:43 +02:00
Aevann1
aa498d89c7
gfd
2022-04-19 21:13:36 +02:00
Aevann1
0705e96770
fds
2022-04-18 20:45:18 +02:00
Aevann1
0e74b54424
fsd
2022-04-18 20:25:14 +02:00
Aevann1
d7fa942d85
fds
2022-04-18 18:01:03 +02:00
Aevann1
69d285b0f3
fds
2022-04-18 01:00:17 +02:00
Aevann1
8214e2c6f9
fds
2022-04-18 00:13:37 +02:00
Aevann1
9c0441aef9
fsd
2022-04-17 23:46:29 +02:00