Commit Graph

15465 Commits (55b08c3c47e11189151c2b1432f753ba3a0f4eeb)

Author SHA1 Message Date
justcool393 c1ca1a02ac
only attempt to parse HTML content types for titles (#382)
* only attempt to parse HTML content types for titles

also don't try to get submission titles for .gifv, .tif, .tiff

* ratelimit to 3 per minute instead of 6 minutes

no one will ever need more than 3 requests to this endpoint per minute - justcool393

6 per minute is already kinda a lot for this endpoint, i think aggressively ratelimiting this one is fine, especially since it's a minute ratelimit
2022-09-30 14:13:06 +02:00
justcool393 0617bb154c
use get_post to handle getting a post (#381)
why did we ever catch an exception throw it away, then catch an exception (something get_post already does) and then finally get the post
2022-09-30 01:44:32 -04:00
Snakes feb5d25e83
Add "banned by" to userpage ban string. 2022-09-29 23:38:26 -04:00
Aevann1 7b7092b5f5 better syntax in /live 2022-09-29 20:29:44 +02:00
Aevann1 b111852d44 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-29 20:25:04 +02:00
Aevann1 5b1e873e54 fix /live 2022-09-29 20:25:01 +02:00
Aevann1 548fe73fb3 sneed 2022-09-29 18:10:30 +00:00
Snakes 60d6f8b20d WPD: add revolving banner selection. 2022-09-29 14:09:26 -04:00
Snakes e52fc4eb9e cron: commit roulette txn early for long tasks. 2022-09-29 14:09:26 -04:00
Aevann1 6b0c734254 Revert "make the default for notify True"
This reverts commit c192019a22.
2022-09-29 20:05:35 +02:00
Aevann1 c192019a22 make the default for notify True 2022-09-29 19:58:19 +02:00
Aevann1 d418cfaef5 fix this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2811191?context=8#context 2022-09-29 19:53:40 +02:00
Aevann1 912d83d3fc remove sidebar img 2022-09-29 19:53:37 +02:00
Aevann1 1641f40c1f Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-29 17:58:51 +02:00
Aevann1 8017c03e97 limit seeing carp's followers only on WPD 2022-09-29 17:58:49 +02:00
Aevann1 9ce83c405f sneed 2022-09-29 15:00:04 +00:00
Aevann1 c16654c4c7 make sure u dont try to get the title of a file (always times out) 2022-09-29 16:45:59 +02:00
Aevann1 ff12923eb1 revert back to old welcome msg 2022-09-29 16:27:50 +02:00
Aevann1 c67b4eea0a limit new users following carp to WPD 2022-09-29 16:16:35 +02:00
Aevann1 2a316301e2 fix prev commit (im retarded) 2022-09-29 14:43:14 +02:00
Aevann1 fd18c00b2a Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-29 14:41:42 +02:00
Aevann1 f073e2e167 fix this https://rdrama.org/h/changelog/post/108741/added-hole-mod-logs-marseyjanny2/2809340?context=8#context 2022-09-29 14:41:39 +02:00
Aevann1 950f5b818e sneed 2022-09-29 12:00:05 +00:00
Aevann1 c628e4448e cosmetic change 2022-09-29 13:50:03 +02:00
Aevann1 3006da3f8f increase sanitize timeout limit from 2 seconds to 5 seconds 2022-09-29 12:34:09 +02:00
Aevann1 b93b96bb77 cosmetic change 2022-09-29 12:30:17 +02:00
Aevann1 2dd2da1ba7 cosmetic change 2022-09-29 12:28:52 +02:00
Aevann1 76921ac740 limit expanded image width on desktop to 80% 2022-09-29 12:27:11 +02:00
Aevann1 94f0789827 fix 500 error 2022-09-29 12:21:55 +02:00
Aevann1 51d7cd6d7e fix shit with hole logs 2022-09-29 12:18:27 +02:00
Aevann1 2f5ae40574 delete legacy modactions 2022-09-29 12:05:14 +02:00
Aevann1 09cc43060d
add hole mod logs (#380) 2022-09-29 11:39:37 +02:00
justcool393 57ce828af4
add 1 words to filter (#379)
* add 2 words to filter

* Update const.py
2022-09-29 11:38:37 +02:00
Aevann1 cc38a82587 remove discord from image host whitelist (they delete images) 2022-09-29 10:24:12 +02:00
Aevann1 03e925fb3c use ban_reason column as a reason for shadowbanning too 2022-09-29 08:36:59 +02:00
Aevann1 2f16510183 specify which error it was in process_streamer() 2022-09-29 08:08:40 +02:00
Aevann1 87f3af5968 generate notifs for moving posts 2022-09-29 08:05:42 +02:00
Aevann1 7201d55f69 Revert "prem version"
This reverts commit 858715b496.
2022-09-29 07:58:11 +02:00
Aevann1 858715b496 prem version 2022-09-29 07:53:37 +02:00
Aevann1 b9d3336a9e nitter shit 2022-09-29 07:53:37 +02:00
Aevann1 6c1237eaa6 remove hand pointer from exile symbol 2022-09-29 07:53:36 +02:00
Snakes 4a54c6219a
Add trailing final newlines to source files.
Touched a ton of files to finally standardize on having trailing
final newlines, as best practice recommends and so our devs stop
accidentally fighting each other over it.

This was performed automatically with the following:
git ls-files -z '*.py' | while IFS= read -rd '' f; \
    do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
git ls-files -z '*.css' | while IFS= read -rd '' f; \
    do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2022-09-29 01:43:29 -04:00
Snakes 11a9efb7cb
Amend f05ec93b: blackjack state implied constraint. 2022-09-29 00:36:58 -04:00
Snakes f05ec93b95
Add gambling wager badge logic.
This commit touches more files than it ought to because this change
required untangling some circular imports, notably a lingering import
of files.helpers.slots in helpers.actions (presumably from old Snappy
gambling logic) and the User.active_blackjack_game accessor. Otherwise,
the logic is fairly straightforward.
2022-09-29 00:26:50 -04:00
Aevann1 5416cd09e2 sneed 2022-09-29 03:00:02 +00:00
Aevann1 01c9b09ccb sneed 2022-09-28 23:00:03 +00:00
Aevann1 d8aa64e9ad sneed 2022-09-28 18:00:03 +00:00
justcool393 6c8faf6de7
add API version of stats page (#378)
statsmaxxing
2022-09-28 10:14:40 +02:00
Outrun Colors 8ac70df325 Add optimistic messages 2022-09-27 19:06:44 -05:00
Outrun Colors 411ff5293e
Re-add lite-youtube script 2022-09-27 17:17:42 -05:00
justcool393 e5de8cc66c
add mod action if JL3 kicks post from hole (#377)
* add mod action if JL3 kicks from hole

* don't be dumb
2022-09-27 18:09:08 -04:00
Aevann1 0b5293d8e7 test stagger again 2022-09-27 12:56:57 +02:00
Aevann1 85653b0438 testing worker reloading 2022-09-27 12:55:20 +02:00
Aevann1 0686cdbcf6 remove testing print statement 2022-09-27 12:52:48 +02:00
Aevann1 c882b366a1 testing smth 2022-09-27 08:41:23 +02:00
Snakes 9914fd215c
Fix leaderboard_thread dispatched as blocking. 2022-09-27 02:32:42 -04:00
Snakes d0d67085e3
Rebuild assetcache on inotify events. 2022-09-27 02:07:32 -04:00
Outrun Colors 430cbe676c
Nest if condition in chat 2022-09-27 00:31:23 -05:00
Outrun Colors 300a5164f6
Add DMing to chat 2022-09-27 00:15:22 -05:00
Snakes 77ed5728c4
Restore mistakenly removed commenting logic. 2022-09-26 22:44:06 -04:00
Outrun Colors aff0bde0a8 Merge branch 'frost' of github.com:Aevann1/rDrama into frost 2022-09-26 21:19:52 -05:00
Outrun Colors c0d8567013
Add to draft when selecting an emoji 2022-09-26 21:19:48 -05:00
Aevann1 dbbb5aa7d5 sneed 2022-09-27 02:00:05 +00:00
Snakes 528d26b094
Fix /marseys missing listdir import.
Apparently the /marseys route was getting its listdir from one of
the `from os import listdir` removed in fa4dee419d. static.py
already has an import os, so we just use the fully qualified
os.listdir.
2022-09-26 21:44:34 -04:00
Aevann1 15a9641d35 sneed 2022-09-27 01:30:04 +00:00
Outrun Colors c6fe563dfc Merge branch 'frost' of github.com:Aevann1/rDrama into frost 2022-09-26 20:28:44 -05:00
Outrun Colors 2e9c774a5d
Re-add expanded image and emojimodal 2022-09-26 20:28:39 -05:00
Aevann1 77c68554d0 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-27 03:24:23 +02:00
Aevann1 faf4403e26 check for duplicate images when admigger threads for banners/sidebar/badges are used 2022-09-27 03:24:20 +02:00
Aevann1 cc85cab01d make badges 300px instead 2022-09-27 02:48:03 +02:00
Aevann1 fa4dee419d remove unnecessary imports 2022-09-27 02:47:52 +02:00
Aevann1 6687e89e1c Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-27 00:27:05 +00:00
Aevann1 9a6dda2e1c fix syntax error in last commit 2022-09-27 02:22:06 +02:00
Aevann1 6b01467102 check for existing subscription 2022-09-27 02:19:52 +02:00
Aevann1 574040c3f5 add furry and pony image hosts 2022-09-26 11:02:39 +02:00
Aevann1 32893a68dc sneed 2022-09-26 09:00:02 +00:00
Aevann1 72e605eabb Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-26 10:58:46 +02:00
Aevann1 ffa83ad3e7 disallow permabanned hole mods from pinning or unpinning 2022-09-26 10:58:43 +02:00
Aevann1 4364381c0b sneed 2022-09-26 07:00:04 +00:00
Snakes 0b416dcf2c
Revise marsify logic. 2022-09-26 02:09:26 -04:00
Aevann1 c9898b2431 WPD: add more sidebars. 2022-09-26 05:47:19 +00:00
Snakes dcf689527b
WPD: restrict rotating sidebars to logged-in. 2022-09-26 01:43:57 -04:00
Snakes 742093aeae
Revert "Revert "WPD: enable rotating sidebar art & admin thread.""
This reverts commit 74db58e54b.
2022-09-26 01:19:37 -04:00
Aevann1 e474a5f42d go from dutch to greek in /live 2022-09-26 07:08:29 +02:00
Aevann1 0ee100895a fix prev commit 2022-09-26 06:24:52 +02:00
Aevann1 305f17a8aa test yarn 2022-09-26 06:20:27 +02:00
Aevann1 69ec89375f fix tall emojis in emoji modal 2022-09-26 06:17:52 +02:00
Aevann1 50794022f6 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-26 06:01:29 +02:00
Aevann1 37e1f25624 make using proxies only happen in 3 circumstances again 2022-09-26 06:01:25 +02:00
Aevann1 f9edd5dfce sneed 2022-09-26 04:00:05 +00:00
Aevann1 9d3c337eb3 500 -> 502 2022-09-26 05:03:01 +02:00
Aevann1 a33c06f9e0 reduce margin 2022-09-26 05:02:29 +02:00
Aevann1 38a829f1e4 make description better 2022-09-26 05:01:53 +02:00
Aevann1 ba0ca7649f stop misleading ppl in 502.htmo 2022-09-26 05:00:59 +02:00
Aevann1 c547f10498 make it possible to click on the spider 2022-09-26 04:52:16 +02:00
Aevann1 fea1f276d9 log /live errors 2022-09-26 04:46:56 +02:00
Aevann1 f2af76c905 add proxies on hcaptcha requests 2022-09-26 04:40:58 +02:00
Aevann1 968c55f8fc add proxies on discord requests 2022-09-26 04:40:46 +02:00
Aevann1 517e62e61b add proxies on pushshift requests 2022-09-26 04:40:31 +02:00
Aevann1 0a83feb966 add proxies on lain.la requests 2022-09-26 04:40:21 +02:00
Aevann1 6158cf632a add proxies on discord requests 2022-09-26 04:40:08 +02:00
Aevann1 7e4e98887b remove proxies from cloudflare 2022-09-26 04:39:03 +02:00
Aevann1 338726f225 convert 1 image to webp 2022-09-26 03:53:30 +02:00
Aevann1 c424a8180f convert 2 images to webp 2022-09-26 03:51:39 +02:00
Aevann1 7bdaefe654 convert 4 images to webp 2022-09-26 03:47:53 +02:00
Aevann1 0a667a0f8d convert an emoji to webp 2022-09-26 03:46:37 +02:00
Aevann1 05079a40f4 limit banners to 1MB 2022-09-26 03:41:03 +02:00
Snakes b0529716bc Remove voluntary marsify toggle. 2022-09-25 21:32:36 -04:00
Aevann1 4c26a7cd02 limit sidebar and badge images to 1MB 2022-09-26 03:27:31 +02:00
Aevann1 2dc7805df8 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-26 03:15:41 +02:00
Aevann1 8fcc91a43e reduce resize values 2022-09-26 03:15:36 +02:00
Snakes 1e6908417e
More compact datetime format in table timestamps. 2022-09-25 17:53:42 -04:00
justcool393 a8e74d3355
delete the spider badge if unspidering, not the marsify one (#374) 2022-09-25 16:17:11 -04:00
Aevann1 5def3f662a sneed 2022-09-25 17:00:03 +00:00
Aevann1 fca9cae3d8 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-25 13:34:36 +02:00
Aevann1 e4f14c57de make holes cost 50k again 2022-09-25 13:34:34 +02:00
Aevann1 3435389807 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-25 11:30:58 +00:00
Aevann1 a2f578c7b7 fix exploit 2022-09-25 13:30:22 +02:00
Aevann1 3339baee54 fixing /live 2022-09-25 13:28:53 +02:00
Aevann1 8269b0dc0f make it look better 2022-09-25 09:09:48 +02:00
Aevann1 334705fae1 sneed 2022-09-25 07:00:02 +00:00
Aevann1 5a97a6f6e6 allow pcm /live to enter channel link 2022-09-25 08:45:19 +02:00
Aevann1 8a85c2413c add consent 2022-09-25 08:31:46 +02:00
Aevann1 a28a4664c2 huh? 2022-09-25 08:30:49 +02:00
Aevann1 9d9783fe0e fix 2022-09-25 08:27:58 +02:00
Aevann1 10d09f076c fix 2022-09-25 08:18:03 +02:00
Aevann1 03f9a69a0d same as last commit 2022-09-25 08:15:30 +02:00
Aevann1 10d06b7ba9 same as last commit 2022-09-25 08:15:17 +02:00
Aevann1 c79067f7f1 make it possible to add channels by name 2022-09-25 08:14:21 +02:00
Aevann1 164b583e7c added "watching" in /live 2022-09-25 08:00:02 +02:00
Aevann1 8d6937e237 add obese 2022-09-25 07:46:02 +02:00
Aevann1 13a3d5c27e fix 2022-09-25 07:45:02 +02:00
Aevann1 f8fccd34db allow me to add channels 2022-09-25 07:43:44 +02:00
Aevann1 4ebd8fb552 limit adding channels to kip 2022-09-25 07:42:29 +02:00
Aevann1 92bdd67884 debug 2022-09-25 07:31:55 +02:00
Aevann1 fc2758df50 fix 2022-09-25 07:24:59 +02:00
Aevann1 63a7183f7e fix /live regex 2022-09-25 06:53:53 +02:00
Aevann1 e9e8b5cc5a fix grammar (i think) 2022-09-25 06:45:22 +02:00
Aevann1 2b0a798fec fix 2022-09-25 06:40:19 +02:00
Aevann1 5d30c3a632 fix 2022-09-25 06:38:43 +02:00
Aevann1 78f0721bb0 fix 2022-09-25 06:37:16 +02:00
Aevann1 695fca5d35 fix 2022-09-25 06:35:56 +02:00
Aevann1 015074c4ca the fuck 2022-09-25 06:33:55 +02:00
Aevann1 97b2e09b65 fix 2022-09-25 06:31:59 +02:00
Aevann1 351a7ca17b fix 2022-09-25 06:27:28 +02:00
Aevann1 230b71c19b same as last commit 2022-09-25 06:22:33 +02:00
Aevann1 4212cfa0b2 testing on pcm 2022-09-25 06:11:06 +02:00
Aevann1 705d3d9e4b Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-25 05:44:00 +02:00
Aevann1 ea7803ef44 testing 2022-09-25 05:43:57 +02:00
Outrun Colors 5e180fc856 Merge branch 'frost' of github.com:Aevann1/rDrama into frost 2022-09-24 22:42:00 -05:00