Commit Graph

15465 Commits (55b08c3c47e11189151c2b1432f753ba3a0f4eeb)

Author SHA1 Message Date
Snakes 0dfa4525fa
Remove special characters from search query. 2022-10-02 07:42:42 -04:00
Aevann1 3bf62c6ff0 add missing ban_reason when shadowbanning 2022-10-02 13:31:02 +02:00
Aevann1 dda49fdd70 the @Wieoaka question 2022-10-02 13:22:18 +02:00
Aevann1 2c989d5c28 remove dramaphobic holier-than-thou sidebar img 2022-10-02 12:57:36 +02:00
Aevann1 da4ade067d make pizza's vote on himself be the first 2022-10-02 12:35:04 +02:00
Aevann1 325187e8bb Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-02 12:33:05 +02:00
Aevann1 13f5ab7c07 remove long slur filters 2022-10-02 12:33:01 +02:00
Snakes 216022a5a0
Comments search: utilize lexeme config. 2022-10-02 06:24:03 -04:00
Snakes d28281bf8f
Fix ORM trying to INSERT/UPDATE into body_ts. 2022-10-02 05:12:04 -04:00
Snakes 701f64c91b
Change comment search to use tsvector. 2022-10-02 04:55:39 -04:00
justcool393 b79a89560f
add requested kind to set if not present
fixes issue where the kind wouldn't show up on the list and cause a error in template rendering
2022-10-02 00:50:59 -07:00
Aevann1 f1e49b11c9 sneed 2022-10-02 04:00:05 +00:00
Snakes aeb40f60b9
emojis.json: marseyflagperu.
Was previously submitted through the /submit/marseys tool. It properly
belongs in emojis.json, however.
2022-10-01 23:10:10 -04:00
Aevann1 a59de67055 sneed 2022-10-02 03:00:02 +00:00
Aevann1 36bea53692 sneed 2022-10-02 02:00:03 +00:00
Snakes cd0b564401
Add 'added' column to /marseys. 2022-10-01 18:27:51 -04:00
Aevann1 dee46a9306 revert an earlier change for video and audio files in sanitize() 2022-10-01 19:42:34 +02:00
Aevann1 fbaa3984a0 small adjustment to prev commit, making it an "elif" 2022-10-01 19:37:59 +02:00
Aevann1 15e0447826 ban ppl for 14 minutes if snappy comments ":marseyban:" on their post 2022-10-01 19:37:25 +02:00
Aevann1 186616728b allow tempbanned nibbas to mod holes 2022-10-01 19:23:09 +02:00
Aevann1 7bee647218 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-01 17:18:19 +00:00
Aevann1 04895e1fac remove my effortpost algo (cant have shit in detroit) 2022-10-01 19:17:58 +02:00
Aevann1 2cf9c7560f remove unused legacy function 2022-10-01 18:29:16 +02:00
Aevann1 b485cc0c8b sneed 2022-10-01 15:00:03 +00:00
Aevann1 a7acbe9831 show our email to loggedout visitors in /contact 2022-10-01 12:14:46 +02:00
Aevann1 e9ffc02fb9 tweak slur filter to stop repititive bug reports 2022-10-01 11:56:31 +02:00
Aevann1 9b64b49175 make suggested emojis bigger on desktop 2022-10-01 11:45:52 +02:00
Aevann1 7e7c14fe22 fix bug in /live 2022-10-01 11:43:16 +02:00
Aevann1 7212fa44ef give ppl an explanation when searching comments 2022-10-01 11:38:14 +02:00
justcool393 fc623b7201 get id fix for sbs 2022-09-30 22:16:15 -07:00
justcool393 f9d6976202
include shadowbanned users here 2022-09-30 22:08:18 -07:00
Aevann1 739624c5d3 sneed 2022-10-01 04:00:04 +00:00
Aevann1 e01ce5e929 sneed 2022-10-01 02:00:03 +00:00
Aevann1 6a0fd03548 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-01 01:38:09 +02:00
Aevann1 d9a57cf201 debug /live 2022-10-01 01:38:07 +02:00
justcool393 50689c9298
remove early life badge if status expired 2022-09-30 16:20:53 -07:00
justcool393 78b668a870 don't duplicate checks for users 2022-09-30 15:51:17 -07:00
justcool393 40c2360d00 don't duplicate checks for comments 2022-09-30 15:51:17 -07:00
justcool393 057bc360bf don't duplicate get checks for posts 2022-09-30 15:51:17 -07:00
Snakes fab2359256
Fix userpage template logic for mobile ban display. 2022-09-30 17:49:47 -04:00
Aevann1 08fc034973 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-30 23:07:56 +02:00
Aevann1 30d4f5e902 allow carp and snakes to see /patrons 2022-09-30 23:07:53 +02:00
justcool393 7e3f43c9ab
unperson shadowbanned users (#373)
* unperson shadowbanned users
if a shadowbanned user copes, does anyone hear them seethe?

* unperson shadowbanned users (by id)

* don't import that

* Add include_blocks.
We don't always want to request blocks from the db when we have a user set

* block shadowbanned users from hole mod tools

* don't allow awarding shadowbanned things

* fix conflict

* gracefully use get_account when specified and also add include_blocks flag to get_account as well
2022-09-30 14:00:58 -07:00
Aevann1 4a3670cdc9 remove 2 bad banners 2022-09-30 21:14:37 +02:00
Aevann1 c127e95f16 sneed 2022-09-30 19:00:03 +00:00
Aevann1 c7f96fdd7a WPD: banners sneed. 2022-09-30 16:11:09 +00:00
Aevann1 9e98494b65 fix betting rewards 2022-09-30 17:38:47 +02:00
Aevann1 52c5dd6028 disable /search/comments for now 2022-09-30 14:20:53 +02:00
Aevann1 0136a4a37f Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-09-30 14:19:54 +02:00
Aevann1 4a1865742a fix bad code in /live 2022-09-30 14:19:48 +02:00
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