Aevann
5c32c8215e
minor fix
2023-03-26 14:27:40 +02:00
Aevann
351e0ead9e
remove unnecessary garbage
2023-03-26 00:48:04 +02:00
Aevann
21e0fa0bc6
fix "I stand with israel" and "I say this as a feminist ally" again lol
2023-03-26 00:18:23 +02:00
Aevann
5c3ba375ba
move if condition
2023-03-25 21:04:20 +02:00
Aevann
1335b48ac6
allow more tags to have agendaposter_phrase
2023-03-25 20:49:35 +02:00
Aevann
a3f555c23a
fix 500 error
2023-03-25 20:32:31 +02:00
Aevann
ba28e84138
refactor torturing and also replace "my" and "mine"
2023-03-25 20:18:48 +02:00
Aevann
d871e6c9f8
allow chud phrase in header tags
2023-03-25 00:45:31 +02:00
Aevann
275eef858f
remove leftover print statement
2023-03-24 14:30:32 +02:00
Aevann
019253e6db
use css for chud images instead
2023-03-24 14:29:19 +02:00
Aevann
3ee1851fa6
fix this https://rdrama.net/h/changelog/post/157290/rdramanet-is-proud-to-welcome-the/3852530#context
2023-03-24 13:43:18 +02:00
Aevann
792bc34d77
fix this https://rdrama.net/h/changelog/post/157290/rdramanet-is-proud-to-welcome-the/3852376#context
2023-03-24 13:31:12 +02:00
Aevann
2805fd2d14
print-debug weird 500 error
2023-03-23 22:19:29 +02:00
Aevann
7eee498070
fix bug where including the agendaposter phrase in the title exempted u from torture_ap
2023-03-23 21:03:02 +02:00
Aevann
21c5b7cc1c
remove unnecessary line
2023-03-23 20:20:01 +02:00
Aevann
e163c2f5d0
fix chud exploit
2023-03-23 18:38:42 +02:00
Aevann
2b7d122fd8
fix last commit
2023-03-23 17:41:57 +02:00
Aevann
f5e507f795
fix 2 chud phrases
2023-03-23 17:36:28 +02:00
Aevann
2e6acd4cc5
check chud phrase in post title too
2023-03-23 14:52:12 +02:00
Aevann
4f788cb909
dedup chud-checking logic
2023-03-23 14:50:01 +02:00
Aevann
51e8122b19
quick fix to complies_with_chud
2023-03-23 11:30:25 +02:00
Aevann
f78cd322d1
much better chud award logic
2023-03-22 23:39:25 +02:00
Aevann
ec9d6b5d68
add :#chudjaktalking: to chud_images
2023-03-22 18:49:48 +02:00
Aevann
50680e0fa8
cut down on chud award evasion
2023-03-21 23:33:43 +02:00
Aevann
65542b5fac
dont strip poll options
2023-03-19 19:53:33 +02:00
Aevann
df1ebf7cad
use SITE_FULL_IMAGES in more places
2023-03-19 18:30:22 +02:00
Aevann
4d46268ad5
count non-marsey emojis too (to be used for emoji picker prioritization)
2023-03-19 10:33:04 +02:00
Aevann
dd54413cf3
convert marsey submission form to include all emojis
2023-03-18 15:34:04 +02:00
Aevann
0ef1a9c856
fix overflow bug
2023-03-16 12:24:20 +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
da19ef96d1
fix images again
2023-03-15 04:46:54 +02:00
Aevann
096fb962f1
remove notify_jannies_of_grooming
2023-03-15 04:20:56 +02:00
Aevann
4644e62c99
fix last commit
2023-03-14 10:11:45 +02:00
Aevann
74e7464f54
fix image links getting broken
2023-03-14 10:08:50 +02:00
Aevann
6583ee9b91
stop image_regex from eating spaes after image
2023-03-14 09:09:25 +02:00
Aevann
08ae593de1
fix this https://stupidpol.site/post/154579/betting-badge-opportunity-are-you-a/3782163#context
2023-03-13 20:33:19 +02:00
Aevann
95dc636aa0
add .party to supported tlds
2023-03-13 07:29:50 +02:00
Aevann
325a8996d8
fix youtube timestamp edge case
2023-03-12 21:07:23 +02:00
Aevann
96457e4998
fix pinging
2023-03-12 16:54:03 +02:00
Aevann
835c5f810d
use .img class
2023-03-12 15:13:28 +02:00
Aevann
97608ea0a9
test getting rid of ![]( on devrama
2023-03-12 15:02:31 +02:00
Aevann
9fd6ca1816
fix snappy quote
2023-03-12 11:30:22 +02:00
Aevann
0f62958024
minor fix
2023-03-12 10:31:17 +02:00
Aevann
257a38548a
include "css" in error
2023-03-11 23:55:40 +02:00
Aevann
ccf6ccd468
same as last commit
2023-03-11 11:50:29 +02:00
Aevann
83550c33bd
fix last commit
2023-03-11 09:36:41 +02:00
Aevann
3a0cc36679
exclude me from showmore
2023-03-11 01:49:46 +02:00
Aevann
ba22df33df
fix showmore
2023-03-11 01:30:42 +02:00
Aevann
af620ac05e
make linking to link groups case insensitive
2023-03-10 23:49:03 +02:00
Aevann
60d0ff395c
fix this https://stupidpol.site/h/foid/post/153435/good-morning-foid-comedian-marseyclown-says/3753551#context
2023-03-10 02:04:13 +02:00
Aevann
ad463de015
fix unimported push_notif
2023-03-10 00:32:31 +02:00
Aevann
5a0f7e540d
make group names case-insensetive
2023-03-07 20:55:17 +02:00
Aevann
c94dd20af0
dont link to groups that dont exist
2023-03-03 23:21:04 +02:00
Aevann
bffd125cde
fix this https://stupidpol.site/h/chudrama/post/151341/-/3700282#context
2023-03-02 22:33:11 +02:00
Aevann
4a52246111
add !everyone
2023-03-01 07:32:19 +02:00
Aevann
55c8a51a1d
make it possible to position poll options
2023-03-01 00:09:16 +02:00
Aevann
24c298f329
do this https://stupidpol.site/h/countryclub/post/79285/-/3681172#context
2023-02-28 21:36:14 +02:00
Aevann
686f88e9cf
css solution to the height spam question
2023-02-26 13:08:52 +02:00
Aevann
08dbc35f34
revert it cuz i lost interest and will opt for a css solution instead
2023-02-26 12:54:41 +02:00
Aevann
1beb1bba21
do the shit I asked @everyone to do
2023-02-26 12:54:17 +02:00
Aevann
28ed629647
add comment
2023-02-26 12:36:53 +02:00
Aevann
95e824f308
fix this https://stupidpol.site/post/150139/2-million-subscriber-youtuber-gets-rape/3665865#context
2023-02-26 12:22:00 +02:00
Aevann
7ec3d1c5f2
fix this https://stupidpol.site/post/150202/its-here-downvoters-stoningdownvotes/3668279#context
2023-02-26 00:18:43 +02:00
Aevann
d020b99359
link to ping groups
2023-02-26 00:06:49 +02:00
Aevann
bc091de92d
add another \n before chud images
2023-02-25 18:01:54 +02:00
Aevann
ae26306846
Revert "improve the showmore algo"
...
This reverts commit 9529cbbd61
.
2023-02-24 09:29:46 +02:00
Aevann
22051152de
fix 500 error
2023-02-24 05:00:22 +02:00
Aevann
e37031c4dd
make sure g.db.flush() is always above _push_notif_thread
2023-02-24 04:36:25 +02:00
Aevann
5a511c00a8
include username in push notifs
2023-02-24 04:22:47 +02:00
Aevann
655159fbf3
add push notifs for blackjack
2023-02-24 04:11:16 +02:00
Aevann
760b2e6a4d
add push notifs for repeatable notifications
2023-02-24 04:09:49 +02:00
Aevann
9529cbbd61
improve the showmore algo
2023-02-24 03:24:50 +02:00
Aevann
a42729329f
fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3645817#context
2023-02-24 02:46:39 +02:00
Aevann
19482f4205
Revert "fix this https://stupidpol.site/post/149214/food-wars-ii-marseychingchong-strikes-back/3642965#context "
...
This reverts commit afd6949998
.
2023-02-24 01:38:00 +02:00
Aevann
afd6949998
fix this https://stupidpol.site/post/149214/food-wars-ii-marseychingchong-strikes-back/3642965#context
2023-02-22 19:38:17 +02:00
Aevann
f1a3f365b5
actually disable comments in css
2023-02-18 22:00:39 +02:00
Aevann
cd2d36e8ef
disallow comments in css
2023-02-18 21:49:11 +02:00
Aevann
7d926e56c9
keep twitter params for search
2023-02-17 20:27:41 +02:00
Aevann
44e9085d8d
add .network to supported TLDs
2023-02-17 16:57:58 +02:00
Aevann
6ec1200611
fix roulette
2023-02-08 04:34:44 +02:00
Aevann
37bc8adf1b
fix chat
2023-02-08 04:14:54 +02:00
Aevann
88814ee208
expand blackjack
2023-02-07 05:31:49 +02:00
Aevann
de3efef761
fix this https://stupidpol.site/post/145206/larry-feinberg-cancelled-seinfeld-ai-banned/3546391#context
2023-02-07 03:12:14 +02:00
Aevann
59ee320584
remove underscore_in_link_regex
2023-02-02 18:53:35 +02:00
official-techsupport
08571dece1
add 'blog' tld ( #108 )
...
https://scottaaronson.blog/ is a thing, for example. We must support the thing.
Add .blog as an approved TLD.
Co-authored-by: official-techsupport <official_techsupport@protonmail.com>
Reviewed-on: rDrama/rDrama#108
Co-authored-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>
Co-committed-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>
2023-02-01 23:20:08 +00:00
Aevann
4ea5dd6d54
disable numbered lists
2023-02-01 17:59:10 +02:00
Aevann
1b786f7be7
fix 500 error
2023-01-28 12:42:45 +02:00
Aevann
1e30acc5a8
make all images have loading="lazy"
2023-01-27 19:55:25 +02:00
Aevann
df132627e6
fix underscores inside links
2023-01-27 11:11:13 +02:00
Aevann
83b22560eb
dont use abort in chat
2023-01-27 09:07:58 +02:00
Aevann
dd1dfc7b77
add .cooking to tlds
2023-01-25 17:49:14 +02:00
Aevann
2a0e288e12
remove twitter tracking
2023-01-25 15:54:58 +02:00
Aevann
b31405c23d
rename handle_youtube to handle_youtube_links
2023-01-25 13:17:12 +02:00
Aevann
9eab5308f3
fix youtube edge case
2023-01-25 13:16:59 +02:00
Aevann
fd3f397214
add .tech tld
2023-01-24 08:30:49 +02:00
official-techsupport
123cee6372
fix an edge case in showmore (when many long paragraphs) ( #93 )
...
$subj
Co-authored-by: official-techsupport <official_techsupport@protonmail.com>
Reviewed-on: rDrama/rDrama#93
Co-authored-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>
Co-committed-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>
2023-01-24 03:56:14 +00:00
Aevann
12274b858f
ban discord ids
2023-01-23 09:38:16 +02:00
Aevann
d9056abfa8
add .wiki tld
2023-01-23 04:15:44 +02:00
Aevann
a560958c3a
fix youtube timestamps
2023-01-23 04:06:56 +02:00
official-techsupport
5902fa5822
showmore on too many newlines (works now) ( #90 )
...
At this point I think we should stop abusing regexes to implement the showmore logic.
I also reduced the character constant to 3000/2500 and increased the line constant to 20 but I don't have any strong feelings about them.
Co-authored-by: official-techsupport <official_techsupport@protonmail.com>
Reviewed-on: rDrama/rDrama#90
Co-authored-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>
Co-committed-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>
2023-01-22 23:27:24 +00:00
Aevann
e8323127f9
fix this https://stupidpol.site/post/141309/marseyxdmarseywall-twitter-influencer-seethemaxxing-after-being/3453484#context
2023-01-22 11:04:09 +02:00
Aevann
df803791ef
exclude snappy from fishylinks_regex
2023-01-21 06:18:02 +02:00
Aevann
96eacd73df
same as last commit
2023-01-21 02:40:32 +02:00
Aevann
c560d1d9fe
improve the "show more" button
2023-01-21 01:47:27 +02:00
Aevann
daad32d0ce
fix nonces in py files
2023-01-02 06:20:59 +02:00
Aevann
f7874b2c4e
fix show more button
2023-01-01 14:26:25 +02:00
Aevann
044664a25e
get rid of useless tabs and spaces
2023-01-01 13:36:20 +02:00
Aevann
b0b70d2f0f
better 200w behavior
2023-01-01 13:30:33 +02:00
Aevann
91b8602714
Revert "stop using 200w"
...
This reverts commit cabc0d3603
.
2023-01-01 13:18:24 +02:00
Aevann
cabc0d3603
stop using 200w
2023-01-01 10:10:06 +02:00
Aevann
dce00a0d3f
more chud images
2023-01-01 09:55:22 +02:00
Aevann
8362a4c497
js fixes
2022-12-30 21:35:23 +02:00
Aevann
3bdfa2b13f
add new chud image
2022-12-30 16:59:05 +02:00
Aevann
54b49d374c
minor fix
2022-12-27 07:37:21 +02:00
Aevann
a122986111
fix giphy framerate
2022-12-25 06:10:54 +02:00
Aevann
663541d0ce
use 200w_d.webp for giphy
2022-12-25 03:22:17 +02:00
Aevann
366f445f2e
replace giphy.gif with giphy.webp
2022-12-25 02:54:47 +02:00
Aevann
1f899c5821
add this https://stupidpol.site/post/134079/new-image-to-spam-at-transphobic/3299559
2022-12-24 20:22:49 +02:00
Aevann
a63b02470d
use sets with in statements
2022-12-24 00:22:41 +02:00
Aevann
b82d29dfde
randomize chud addendums
2022-12-23 03:55:11 +02:00
Aevann
5d6d108dd5
remove redundant domain bans
2022-12-23 00:25:31 +02:00
Aevann1
0ba5469424
increase sanitize timeout from 5 seconds to 10 seconds
2022-12-15 21:31:33 +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
4439f03ef5
resizable videos
2022-12-10 21:12:14 +02:00
geese_suck
6a56f036cb
whitelist table class for tables in sanitizer
2022-12-09 13:04:28 -08:00
justcool393
c12bf5105f
WPD: remove poll limit ( #51 )
...
by request of the wpd mops
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#51
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-06 18:24:41 +00:00
Snakes
9160a853ec
Remove !YOU!.
...
Security mess and stale joke.
2022-12-05 20:06:04 -05:00
Snakes
fe5ffd1bcf
security: sanitize !YOU! in <a href="">.
...
Unlike the recent auto-embed exploits which have been patched, this
requires active user action. However our userbase, like all userbases,
contains quite a few retards and phoneposters who don't check links
before clicking.
Example exploit:
<a href="https://example.com/log?username=!YOU !">Bardfinn Dox</a>
2022-12-05 19:05:02 -05: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
Snakes
be2b210df4
Remove superfluous #disablepoll command.
...
Already resolved by 29070c78a9
.
2022-12-04 17:15:52 -05:00
justcool393
ed0981cbdb
add functionality to disable poll formatting ( #35 )
...
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#35
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-04 21:46:27 +00:00
Aevann1
1f675c61e5
minor regex fix for emojis
2022-12-04 00:26:05 +02:00
Aevann1
9947e635ab
make supportjews.webp an image instead
2022-12-03 00:32:51 +02:00
Aevann1
6248042e46
add supportjews emoji and use it in chud message
2022-12-03 00:22:18 +02:00
Aevann1
064b5878f9
add "media" tld
2022-12-02 12:38:07 +02:00
Aevann1
a641acaf8f
use sets instead of lists in some statements
2022-11-26 06:52:47 +02:00
Aevann1
1ab3835a09
add .host and .art
2022-11-22 23:20:24 +02:00
Aevann1
f272989735
Revert "stop adding target="_blank" in the backend and move it to the frontend (to accomodate PWA users) - THANK YOU GEESE I LOVE YOU SO MUCH ( #473 )"
...
This reverts commit 88f3cd519d
.
2022-11-21 19:37:38 +02:00
Aevann1
88f3cd519d
stop adding target="_blank" in the backend and move it to the frontend (to accomodate PWA users) - THANK YOU GEESE I LOVE YOU SO MUCH ( #473 )
...
* test
* bleg
* remove User.newtab and see if anyone complains (#471 )
* fddf
2022-11-21 07:14:26 -08:00
Aevann1
2362afa622
make the youtube code in sanitize be like the youtube code in posts.py
2022-11-19 06:44:07 -06:00
Aevann1
f1288ba991
fix https://rdrama.life/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3080531?context=8#context
2022-11-15 17:29:45 +02:00
justcool393
8f2f48d6d1
[DO NOT MERGE] import detanglation ( #442 )
...
* move Base definition to files.classes.__init__.py
* fix ImportError
* move userpage listing to users.py
* don't import the app from classes
* consts: set default values to avoid crashes
consts: warn if the secret key is the default config value
* card view: sneed (user db schema)
* cloudflare: use DEFAULT_CONFIG_VALUE
* const: set default values
* decouple media.py from __main__
* pass database to avoid imports
* import cleanup and import request not in const, but in the requests mega import
* move asset_submissions site check to __init__
* asset submissions feature flag
* flag
* g.is_tor
* don't import request where it's not needed
* i think this is fine
* mail: move to own routes and helper
* wrappers
* required wrappers move
* unfuck wrappers a bit
* move snappy quotes and marseys to stateful consts
* marsify
* :pepodrool:
* fix missing import
* import cache
* ...and settings.py
* and static.py
* static needs cache
* route
* lmao all of the jinja shit was in feeds.py amazing
* classes should only import what they need from flask
* import Response
* hdjbjdhbhjf
* ...
* dfdfdfdf
* make get a non-required import
* isort imports (mostly)
* but actually
* configs
* reload config on import
* fgfgfgfg
* config
* config
* initialize snappy and test
* cookie of doom debug
* edfjnkf
* xikscdfd
* debug config
* set session cookie domain, i think this fixes the can't login bug
* sdfbgnhvfdsghbnjfbdvvfghnn
* hrsfxgf
* dump the entire config on a request
* kyskyskyskyskyskyskyskyskys
* duifhdskfjdfd
* dfdfdfdfdfdfdfdfdfdfdfdf
* dfdfdfdf
* imoprt all of the consts beacuse fuck it
* ðŸ˜
* dfdfdfdfdfdfsdasdf
* print the entire session
* rffdfdfjkfksj
* fgbhffh
* not the secret keys
* minor bug fixes
* be helpful in the warning
* gfgfgfg
* move warning lower
* isort main imports (i hope this doesn't fuck something up)
* test
* session cookie domain redux
* dfdfdfd
* try only importing Flask
* formkeys fix
* y
* :pepodrool:
* route helper
* remove before flight
* dfdfdfdfdf
* isort classes
* isort helpers
* move check_for_alts to routehelpers and also sort imports and get rid of unused ones
* that previous commit but actkally
* readd the cache in a dozen places they were implicitly imported
* use g.is_tor instead of request.headers. bla bla bla
* upgrade streamers to their own route file
* get rid of unused imports in __main__
* fgfgf
* don't pull in the entire ORM where we don't need it
* features
* explicit imports for the get helper
* explicit imports for the get helper redux
* testing allroutes
* remove unused import
* decouple flask from classes
* syntax fix also remember these have side fx for some reason (why?)
* move side effects out of the class
* posts
* testing on devrama
* settings
* reloading
* settingssdsdsds
* streamer features
* site settings
* testing settings on devrama
* import
* fix modlog
* remove debug stuff
* revert commit 67275b21ab6e2f2520819e84d10bfc1c746a15b6
* archiveorg to _archiveorg
* skhudkfkjfd
* fix cron for PCM
* fix bugs that snekky wants me to
* Fix call to realbody passing db, standardize kwarg
* test
* import check_for_alts from the right place
* cloudflare
* testing on devrama
* fix cron i think
* shadow properly
* tasks
* Remove print which will surely be annoying in prod.
* v and create new session
* use files.classes
* make errors import little and fix rare 500 in /allow_nsfw
* Revert "use files.classes"
This reverts commit 98c10b876cf86ce058b7fb955cf1ec0bfb9996c6.
* pass v to media functions rather than using g
* fix
* dfdfdfdfd
* cleanup, py type checking is dumb so don't use it where it causes issues
* Fix some merge bugs, add DEFAULT_RATELIMIT to main.
* Fix imports on sqlalchemy expressions.
* `from random import random` is an error.
* Fix replies db param.
* errors: fix missing import
* fix rare 500: only send to GIFT_NOTIF_ID if it exists, and send them the right text
* Fix signup formkey.
* fix 2 500s
* propagate db to submissions
* fix replies
* dfdfdfdf
* Fix verifiedcolor.
* is_manual
* can't use getters outside of an app context
* don't attempt to do gumroad on sites where it's not enabled
* don't attempt to do gumraod on sites's where it's unnecessary
* Revert "don't attempt to do gumroad on sites where it's not enabled"
This reverts commit 6f8a6331878655492dfaf1907b27f8be513c14d3.
* fix 500
* validate media type
Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-15 03:19:08 -06:00
justcool393
3569c06ce2
add .video
2022-11-12 05:05:08 -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
justcool393
657c00244a
sanitize, fix bug with update_flag, and update copy for low tsfriends
2022-11-06 20:06:37 -08:00
Aevann1
d76fe63c7f
constantify image extensions and fix imgur .gif bug
2022-11-05 23:01:23 +02:00
Aevann1
bd779abc6e
go back to the old TLD system in sanitize
2022-11-02 09:08:02 +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
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
b816973f38
ignore subdomains in banned_domains logic
2022-10-28 20:12:40 +02:00
Aevann1
1a35e2ec6a
refactor banned domains
2022-10-28 00:37:29 +02:00
Aevann1
c8f24eab1b
fix videos
2022-10-23 10:57:13 +02:00
justcool393
578e1896fd
sanitize: strip out html comments
...
they're unnecessary and never get rendered
2022-10-20 18:06:55 -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
justcool393
b92535c286
pings bypass permission
2022-10-12 02:36:29 -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
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
Aevann1
168f18893f
change wording of an error msg
2022-10-06 07:08:48 +02:00
justcool393
093ced7b20
introduce constant for post and title length
2022-10-05 16:35:44 -07:00
justcool393
88ae00deef
sanitize raw bodies
2022-10-05 16:35:44 -07:00
justcool393
19b2f71c3b
improve raw title sanitization and don't check the same thing like 5 times
2022-10-05 16:35:44 -07:00
justcool393
f901d5af05
show raw unicode codes instead of the actual characters
2022-10-04 15:29:00 -07:00
justcool393
4c71bd6b5c
fake colon
2022-10-04 14:33:23 -07:00
Aevann1
dee46a9306
revert an earlier change for video and audio files in sanitize()
2022-10-01 19:42:34 +02:00
Aevann1
3006da3f8f
increase sanitize timeout limit from 2 seconds to 5 seconds
2022-09-29 12:34:09 +02:00
Aevann1
b9d3336a9e
nitter shit
2022-09-29 07:53:37 +02:00
official-techsupport
bd8b96c1f5
fix the TLD matching to exclude numbers ( #371 )
2022-09-24 18:06:53 -04:00
official-techsupport
0ff839d396
Accept any TLDS ( #369 )
2022-09-24 02:04:09 +02:00
Aevann1
bb4e21b2f0
fix utm regex
2022-09-23 15:23:11 +02:00
Aevann1
2fb4ebdcb0
minor sanitize refactor
2022-09-16 18:30:34 +02:00
Aevann1
b3d2fca506
remove kf replacing
2022-09-12 13:59:49 +02:00
Aevann1
47890d771d
add Marsey Submission UI
2022-09-09 11:13:50 +02:00
Aevann1
0f232b264c
refactor torture_ap
2022-09-05 22:05:04 +02:00
Aevann1
959e08bb83
make marsify not count towards /marseys
2022-09-05 10:49:34 +02:00
Aevann1
0271d4488f
do this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2658067?context=8#context
2022-09-05 03:43:07 +02:00
Aevann1
0c32d56cd6
casino + style shit
2022-09-05 01:15:37 +02:00
Aevann1
a0579b40e0
restore metadata for audio
2022-09-03 05:39:35 +02:00
Aevann1
28dbe0d6ab
fix WPD slowness
2022-09-03 05:34:06 +02:00
Aevann1
083371f20f
keep_blank_values
2022-09-01 22:46:57 +02:00
Aevann1
523bfd93c5
show first frame of video
2022-09-01 22:43:11 +02:00
official-techsupport
a9eeb29b9b
fix showmore quadratic behavior ( #343 )
2022-08-30 23:19:53 +02:00
Aevann1
2dcd1288d7
Revert "adjust audio and video embedding"
...
This reverts commit e9d98e158c
.
2022-08-26 20:15:26 +02:00
Aevann1
0b786477fc
support all existing TLDs
2022-08-25 17:04:25 +02:00
Aevann1
75ad5b34f2
fix youtube embedding
2022-08-25 00:02:06 +02:00
Aevann1
3c9145ee60
add .world tld
2022-08-23 00:13:32 +02:00
Aevann1
fbbd6f9be8
fix prev commit
2022-08-21 19:22:18 +02:00
Aevann1
663904fb3d
steal the parts I wanted from spidey's PR
2022-08-21 19:20:09 +02:00
Aevann1
fb2437574f
change ping_limit to be 3 for comments, and 50 for posts
2022-08-21 17:05:32 +02:00
Aevann1
0e0f414cc9
add .farm TLD
2022-08-21 15:29:35 +02:00
Aevann1
7084e71c57
fix pinging
2022-08-20 23:39:01 +02:00
Aevann1
e9d98e158c
adjust audio and video embedding
2022-08-20 22:32:28 +02:00
Aevann1
d8c6b575de
fix pinging
2022-08-19 15:10:39 +02:00
Aevann1
5234c8ef21
remove weird spaes
2022-08-17 22:30:07 +02:00
Aevann1
0715ab3e64
fix multipinging (hopefully this doesnt break other shit)
2022-08-17 21:41:09 +02:00
Aevann1
0cae055403
remove weird spaces annoying me
2022-08-17 21:25:57 +02:00
Aevann1
b9453bac03
replace " https://imgur.com/ " with " https://i.imgur.com/ " for the sake of mobilecels
2022-08-13 07:06:53 +02:00
Snakes
55c1ad859e
Disable showmore logic on posts.
2022-08-10 17:34:15 -04:00
Snakes
8b241a765a
Check URI approved embed in all CSS contexts.
2022-08-05 13:09:41 -04:00
Aevann1
981692550f
fix ping limiting being applies on all instances of "sanitize()"
2022-08-05 17:14:22 +02:00
Aevann1
d069550284
fix issue with showmore button breaking divs
2022-08-04 21:31:13 +02:00
Aevann1
347604c433
make non-jannies unable to ping more than 3 ppl
2022-07-29 15:23:34 +02:00
Snakes
d06ea7d349
LGB: disable markup commands.
2022-07-19 21:20:52 -04:00
Aevann1
636e5e1254
fix camas.unddit.com
2022-07-15 15:27:45 +02:00
Aevann1
8da96d40f7
replace search.marsey.cat with camas.unddit.com
2022-07-15 15:00:51 +02:00
Aevann1
e3d2d24d94
fix this https://chapotraphouse.club/post/85005/chadblack2-soymad-soycry-soymad-black-man/2294928?context=8#context
2022-07-13 18:48:53 +02:00
Aevann1
dcc63c7834
add more image validation (to fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2298173?context=8#context )
2022-07-12 22:30:00 +02:00
Aevann1
fb73fa0612
add target="_blank" to all external urls
2022-07-12 22:29:27 +02:00
Aevann1
b5d9db86d1
refactor comment commands
2022-07-11 14:14:18 +02:00
Aevann1
1549508e49
make :marseyunpettable: unpettable
2022-07-08 17:39:54 +02:00
Snakes
b66bfdcab9
sanitize.with_sigalrm_timeout: functools.wrap fix.
2022-07-06 05:01:48 -04:00
official-techsupport
548030fcf1
fix exceptions in sanitize leaving SIGALRM on
2022-07-06 04:46:00 -04:00
Aevann1
1115c1a574
fix reddit domain replacement
2022-07-04 05:08:33 +02:00
Aevann1
c0c5057ab9
make reddit_domain_regex work with user profiles too
2022-07-04 03:12:28 +02:00
Aevann1
076fad1108
fix 403 errors on unrelated text
2022-07-03 05:42:15 +02:00
Aevann1
3bfe9e984b
don't allow URLs with '\\' in them
2022-07-03 04:03:40 +02:00
Aevann1
bce4c13043
kitchen sink commit, all over the place
2022-07-02 12:44:05 +02:00
Aevann1
6ec0d25034
strip sanitized text
2022-07-02 12:12:52 +02:00
Aevann1
77c1f96383
remove empty anchor tags
2022-07-02 02:54:59 +02:00
Aevann1
28786342dc
fix snappy archiving images
2022-07-02 02:25:58 +02:00
Aevann1
cba02b9e4b
fix issue with code blocks
2022-07-01 01:01:10 +02:00
Aevann1
aa53296d07
Revert "remove "filter" from allowed styles"
...
This reverts commit 14d929623e
.
2022-07-01 00:18:05 +02:00
Aevann1
14d929623e
remove "filter" from allowed styles
2022-07-01 00:03:32 +02:00
Aevann1
790a814b36
make "show more" button look nicer
2022-06-29 04:35:52 +02:00
Aevann1
e7460874e9
double the timeout duration for sanitize()
2022-06-29 03:39:33 +02:00
Aevann1
b6a5d010ca
add "show more..." button
2022-06-29 02:55:44 +02:00
Aevann1
3ed41a0835
remove insane number of line breaks in rendered HTML
2022-06-29 01:53:41 +02:00
Aevann1
b873492dd0
fix strikethrough, v2
2022-06-28 07:52:29 +02:00
Aevann1
50121f6960
fixed strikethrough
2022-06-28 07:41:21 +02:00
Aevann1
46c9c719d0
fixed 500 error
2022-06-27 04:22:12 +02:00
Aevann1
b5d993569f
embed rework
2022-06-27 03:00:45 +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
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
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
Aevann1
e42227ab67
add glowie marseys
2022-06-23 02:34:37 +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
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
4166b2d2f0
Content: chadsoy x2, more neo-gTLDs.
2022-06-21 01:03:33 -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
3eb788103c
allow only ascii characters in links ( https://rdrama.net/comment/2150032 )
2022-06-19 19:25:55 +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
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
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
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
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
Snakes
c61375288f
Content: add TLD to sanitize.
2022-06-14 03:48:02 -04:00
Aevann1
d8fff0bc72
Revert "Fix giant patting hand UI bug."
...
This reverts commit 7915eb8390
.
2022-06-13 20:31:28 +02:00
Aevann1
07f2c0d2ca
make marsey counter work everywhere (not just comments)
2022-06-13 20:05:24 +02: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
831344b723
small image embed improvements
2022-06-11 14:21:59 +02:00
Aevann1
a082105ab8
remove weird trailing tabs
2022-06-11 11:56:16 +02:00
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
Aevann1
78ea56837f
fds
2022-04-17 22:20:40 +02:00
Aevann1
e63dcc0c74
fds
2022-04-17 15:53:00 +02:00
Aevann1
2c27fed388
fds
2022-04-17 01:22:48 +02:00
Aevann1
5e18eb7222
fds'
2022-04-17 01:06:53 +02:00
Aevann1
520f2e32f0
fsd
2022-04-17 01:00:32 +02:00
Aevann1
d11f430e97
fsd
2022-04-17 01:00:21 +02:00
Aevann1
39c374a90d
fds
2022-04-17 00:42:12 +02:00
Aevann1
5c7c876218
dfs
2022-04-16 22:16:09 +02:00
Aevann1
248d3c7d25
fdssfd
2022-04-16 17:30:35 +02:00
Aevann1
c6230e5f50
fsd
2022-04-16 16:58:07 +02:00
Aevann1
d9a590ef9a
fsd
2022-04-16 02:18:41 +02:00
Aevann1
78530d6d17
fds
2022-04-16 01:06:13 +02:00
Aevann1
9c9b600afe
fds
2022-04-16 00:42:42 +02:00
Aevann1
7047953ce7
fdsdfs
2022-04-16 00:39:17 +02:00
Aevann1
9a5a07f6c3
fds
2022-04-10 20:46:55 +02:00
Aevann1
3575201f66
fds
2022-04-06 23:15:43 +02:00
Aevann1
9a75ddee97
dogecore
2022-04-05 17:50:56 +02:00
Aevann1
c26091c9cc
I have no idea what I'm doing
2022-04-04 19:23:35 +02:00
Aevann1
b538d2a24c
gdfg
2022-03-31 18:28:53 +02:00
Aevann1
3a3157def3
df
2022-03-29 19:32:36 +02:00
Aevann1
312a6b75f7
tre\
2022-03-28 12:06:57 +02:00
Aevann1
fef1a41dca
gfd
2022-03-27 16:34:56 +02:00
Aevann1
e0c52afc08
rwe
2022-03-27 16:15:41 +02:00
Aevann1
4a5fd4b99c
fds
2022-03-26 13:38:31 +02:00
Aevann1
e1db64f34a
c
2022-03-26 13:36:25 +02:00
Aevann1
eec1738d01
what a mess
2022-03-24 21:44:12 +02:00
Aevann1
0e4549333a
fds
2022-03-22 18:08:05 +02:00
Aevann1
25f27acd05
fds
2022-03-22 17:33:25 +02:00
Aevann1
b806c9987b
fsd
2022-03-22 17:28:30 +02:00
Aevann1
86d93a7ca2
dfs
2022-03-22 17:23:09 +02:00
Aevann1
86c261f246
fds
2022-03-22 17:20:48 +02:00
Aevann1
30e17954f7
fsd
2022-03-22 17:19:16 +02:00
Aevann1
243ee712ea
fds
2022-03-22 17:15:19 +02:00
Aevann1
ffe1964981
fds
2022-03-21 23:31:16 +02:00
Aevann1
ec80510e4b
fds
2022-03-21 22:56:43 +02:00
Aevann1
549c9ba394
arrr
2022-03-19 20:12:14 +02:00
Aevann1
7015e93a07
v
2022-03-19 13:37:43 +02:00
Aevann1
397dca9a83
publish fix
2022-03-18 21:05:54 +02:00