forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

15998 Commits (3c3950adb013c1f9ec35e24bf3864933b3618578)

Author SHA1 Message Date
Aevann1 5d550d4c7a redirect to proper host instead of giving an error 2022-10-18 12:56:06 +02:00
Aevann1 cdfece62cf decrease y'all seeing eye's price from 10k to 1k 2022-10-18 12:31:50 +02:00
Aevann1 3e7b37ec35 dont redirect to a repost for chadmins 2022-10-18 12:26:44 +02:00
Aevann1 eff2d35a00 remove telegram chat link 2022-10-18 12:23:22 +02:00
Aevann1 001ff55980 small change to post_rate_limit (cuz it catches failed submissions) 2022-10-18 12:21:10 +02:00
Aevann1 6e65a0c198 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-18 12:20:35 +02:00
Aevann1 3490f3d74d cosmetic change 2022-10-18 12:20:33 +02:00
Aevann1 9e6fe3063f sneed 2022-10-18 08:00:02 +00:00
Snakes 984d8675b5
Fix rainbow award on non-rDrama sites. 2022-10-17 23:10:40 -04:00
Snakes 599cab7365
PCM: temporarily re-enable awards; some cleanup. 2022-10-17 21:55:07 -04:00
justcool393 33c6edba58 import error i think also make graceful 2022-10-17 20:49:13 -05:00
justcool393 1446bf582f user validation logic fix 2022-10-17 20:37:09 -05:00
Snakes efee8b89e7
WPD migration: update to reflect env var fix. 2022-10-17 20:40:09 -04:00
Snakes 1fc7e748e0
Revert "fix error with 500 page"
This reverts commit 3901b2c379.

Was just debugging code which is now unneeded.
2022-10-17 20:35:47 -04:00
justcool393 4d0e2013dc g.db fix 2022-10-17 19:28:46 -05:00
justcool393 3901b2c379 fix error with 500 page 2022-10-17 19:16:28 -05:00
justcool393 39545e556f WPD: disable /logged_out on .co, fixing infinite loop
WPD: fix bad asset link
WPD: redirect on migration login and failed migration login
2022-10-17 19:11:50 -05:00
Snakes 41fd13602f
Fix broken import in WPD migration. 2022-10-17 19:47:28 -04:00
justcool393 be6fa59e13 fix host bug, do a absolute redirect instead of a relative one, and make wpdco page essentially static 2022-10-17 18:40:09 -05:00
justcool393 96d63ed5de banner text and also rename variable 2022-10-17 18:40:09 -05:00
justcool393 4cb02189cf WPD: request path fixes 2022-10-17 18:40:09 -05:00
justcool393 6d538e2cd3 WPD migration code 2022-10-17 18:40:09 -05:00
justcool393 d07a6cbc08 remove bot mentions 2022-10-17 14:44:44 -05:00
justcool393 95f4f42ed2 syntax 2022-10-17 14:34:23 -05:00
justcool393 30b51135c4 another one 2022-10-17 14:32:47 -05:00
justcool393 edc3b0c84e co to tv 2022-10-17 14:32:05 -05:00
Aevann1 44fca7f086 ripbozo 2022-10-17 21:13:33 +02:00
Aevann1 9358b75027 fix prev commit 2022-10-17 20:22:29 +02:00
Aevann1 e514b86eb6 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-17 20:20:44 +02:00
Aevann1 4a2c5e3392 cosmetic change 2022-10-17 20:20:42 +02:00
justcool393 0e840a4ddb add r/Drama to reddit notifications 2022-10-17 12:46:30 -05:00
Aevann1 80c5ed8428 fix slur filter 2022-10-17 19:18:51 +02:00
Aevann1 bf859b0e3a sneed 2022-10-17 18:58:15 +02:00
Aevann1 24d6a03c14 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-17 18:46:45 +02:00
Aevann1 ae7bc6dd9f change name 2022-10-17 18:46:42 +02:00
justcool393 cc0c767877 static data as one function which is referenced 2022-10-17 05:08:09 -05:00
Aevann1 cbbc0ea2e5 limit size of images in preview 2022-10-17 10:51:22 +02:00
Aevann1 3ee85d524b limit height of bio in popover to 50vh 2022-10-17 10:51:16 +02:00
Aevann1 ba3348c92a fix animated sidebar images 2022-10-17 10:33:38 +02:00
Aevann1 9204b8bebd remove rarely-seen slur filters 2022-10-17 10:32:58 +02:00
Aevann1 e54c4a1f15 require reason when banning a domain 2022-10-17 10:16:14 +02:00
Aevann1 24f68bc02f sneed 2022-10-17 00:00:06 +00:00
Snakes 340ffdff76
Fix error toast on award modal success. 2022-10-16 18:22:00 -04:00
Snakes 1114590cc7
Suppress log on first award modal selection. 2022-10-16 18:14:50 -04:00
Aevann1 00bfa7bbea sneed 2022-10-16 20:20:08 +00:00
Snakes 912560327f
Apply anti-grooming logic to chat. 2022-10-16 16:19:13 -04:00
Aevann1 2e48650b86 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-16 20:27:40 +02:00
Aevann1 f292069c3e small adjustment to glowop 2022-10-16 20:27:37 +02:00
Snakes 2efe5d1522
Fix changelog channel messaging on draft publish. 2022-10-16 13:49:24 -04:00
Aevann1 3150714c2e only calc_users when we need to show them 2022-10-16 19:08:38 +02:00
Snakes dca21741c3
Discord removal: fix syntax error, asst'd cleanup. 2022-10-16 09:03:08 -04:00
justcool393 e8329a12cc
remove unused routes 2022-10-16 08:01:59 -05:00
justcool393 aa508fc076 remove discord 2022-10-16 05:42:52 -07:00
justcool393 4b2ce3b7a0 use perms constant for unclub_post 2022-10-16 03:41:54 -07:00
Aevann1 4355768995 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-16 11:56:15 +02:00
Aevann1 d1bcfa3f0c Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-16 11:54:40 +02:00
Aevann1 94424163db fix pinned posts 2022-10-16 11:54:36 +02:00
justcool393 f4af073253 fix 17 potential 500s 2022-10-16 02:51:42 -07:00
justcool393 3f9b51f0c1 fix 500: abort 404 if not an integer 2022-10-16 02:18:23 -07:00
Aevann1 c74e8013a9 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-16 10:26:21 +02:00
Aevann1 da49350b2b increase margin for "forgot password?" 2022-10-16 10:26:19 +02:00
justcool393 24a4274ee1 fix upvoters/downvoters for comments and user voted 2022-10-16 01:17:20 -07:00
Aevann1 87852c6e65 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-16 10:10:52 +02:00
Aevann1 24e7828ae0 fix vote_dir in @user/voted/comments 2022-10-16 10:10:50 +02:00
justcool393 be055d1d82 fix "52yr ago" bug 2022-10-15 23:57:55 -07:00
Aevann1 78fffccef4 sneed 2022-10-16 01:06:03 +00:00
justcool393 32a4693da9 fix a couple of potentially rare 500s 2022-10-15 14:35:24 -07:00
justcool393 6138c94a10 unduplicated alt adding code
* should probably be part of the Alt or User class at some point but this is for a diff day
2022-10-15 11:52:10 -07:00
justcool393 60284daa8e replace all of the duplicated age strings with make_age_string 2022-10-15 11:11:43 -07:00
Aevann1 c0b6fc1b42 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-15 19:21:34 +02:00
Aevann1 35655659e2 remove broken sidebar image 2022-10-15 19:21:32 +02:00
justcool393 ef840c4afd make it so you can't vote on messages 2022-10-15 10:12:55 -07:00
Aevann1 129508b163 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-15 19:03:53 +02:00
Aevann1 f63bf4e718 restore old pin behavior 2022-10-15 19:03:51 +02:00
Snakes 616e15ebb9
Fix posting/commenting from API.
The rework to v.client meant that `is_bot` on Submission and Comment
would attempt to be populated with a ClientAuth object when submitted
by a bot other than Snappy or bbbb. SQLAlchemy requires an actual
boolean, not just a truthy value.
2022-10-15 10:11:14 -04:00
Snakes ed2b6938ba
Amend 35fd90c9c: calc_users gets g but not g.agent. 2022-10-15 07:33:25 -04:00
Snakes 35fd90c9ca
Amend c95e33831: even fewer globals than expected. 2022-10-15 07:27:26 -04:00
Snakes c95e33831c
Check for globals in calc_users; fix error pages. 2022-10-15 07:23:29 -04:00
justcool393 c428a59397 v -> v and v.client 2022-10-15 04:18:07 -07:00
Aevann1 fafbcb5699 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-15 12:38:15 +02:00
Aevann1 9b91862cab compress all existing banners/sidebar/badges into lower than 500KB 2022-10-15 12:38:12 +02:00
Aevann1 f2225e700a change MAX_IMAGE_SIZE_BANNER_RESIZED_MB into MAX_IMAGE_SIZE_BANNER_RESIZED_KB 2022-10-15 12:37:55 +02:00
justcool393 c2b6c5903d fix 500 in search.py 2022-10-15 03:30:13 -07:00
Aevann1 4f8f8db54f reduce allowed size for banners/sidebar/badges from 1MB to 0.5MB 2022-10-15 12:13:23 +02:00
Aevann1 6465982580 decouple v.last_active from the calc_users 2022-10-15 12:08:14 +02:00
justcool393 39aa59a37a add g.is_api_or_xhr so we can use it where we want to give API output
* also use v.client for strict API clients
2022-10-15 02:11:36 -07:00
Aevann1 ab1f9b1351 sneed 2022-10-15 08:00:05 +00:00
Aevann1 0d0cde1d2b fix prev commit 2022-10-15 09:33:58 +02:00
Aevann1 c24851dbb3 only calculate users when we actually need them 2022-10-15 09:31:24 +02:00
Aevann1 c29b7e0871 remove chud rotating pfps 2022-10-15 08:57:28 +02:00
Aevann1 5b1e3b7aff Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-15 08:55:56 +02:00
Aevann1 b1efa072e6 rename /agendaposters to /chuds 2022-10-15 08:55:54 +02:00
Snakes 683d562058
Fix pruning of {SITE}_loggedin/out dicts.
For the past week, we noticed a gradual increase in CPU usage and
request times. Use of a sampling profiler revealed the time waas spent
in serializing/deserializing data stored in Redis. In particular, the
user counter dicts were filtered for calculation of the loggedin/out
counters, but the filtered versions were never stored.

To make concurrency safe, we still filter on every request, but at
least the resting data will eventually be appropriately filtered,
and this data is non-critical regardless.
2022-10-14 17:41:26 -04:00
Snakes b6703595da
Revert "make 819.webp the only sidebar image for a couple of days to hopefully piss off someone"
This reverts commit d244124d47.

It's been a few days, reverted upon Carp request.
2022-10-14 15:34:20 -04:00
justcool393 419ed61dd3 discord ids as constants 2022-10-14 11:46:39 -07:00
Aevann1 0753d73f32 fix wrong js func name 2022-10-14 20:43:01 +02:00
Aevann1 c49ae42205 fix for joan 2022-10-14 20:41:03 +02:00
Aevann1 f59263c42d Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-14 20:35:15 +02:00
Aevann1 afdec9a5a9 minor tweak to avoid double-notifying ppl 2022-10-14 20:35:13 +02:00
justcool393 85d2994cce pin_post -> pinPost 2022-10-14 11:34:31 -07:00