Commit Graph

2205 Commits (30b51135c447a0f8e4249a8d394b4f921a84112e)

Author SHA1 Message Date
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
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 ae7bc6dd9f change name 2022-10-17 18:46:42 +02:00
Aevann1 9204b8bebd remove rarely-seen slur filters 2022-10-17 10:32:58 +02:00
Aevann1 f292069c3e small adjustment to glowop 2022-10-16 20:27:37 +02:00
Snakes dca21741c3
Discord removal: fix syntax error, asst'd cleanup. 2022-10-16 09:03:08 -04:00
justcool393 aa508fc076 remove discord 2022-10-16 05:42:52 -07:00
justcool393 be055d1d82 fix "52yr ago" bug 2022-10-15 23:57:55 -07:00
justcool393 32a4693da9 fix a couple of potentially rare 500s 2022-10-15 14:35:24 -07:00
justcool393 60284daa8e replace all of the duplicated age strings with make_age_string 2022-10-15 11:11:43 -07: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
Aevann1 f2225e700a change MAX_IMAGE_SIZE_BANNER_RESIZED_MB into MAX_IMAGE_SIZE_BANNER_RESIZED_KB 2022-10-15 12:37:55 +02: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 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
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
justcool393 419ed61dd3 discord ids as constants 2022-10-14 11:46:39 -07:00
Aevann1 afd11e376f fix 500 error 2022-10-14 19:15:29 +02:00
Aevann1 77312317f3 get rid of Boolean columns for permenant awards 2022-10-14 18:59:49 +02:00
justcool393 36b370dd14 use comment length for snappy, not post 2022-10-14 06:19:47 -07:00
justcool393 2dd74d3acd don't constantly check for reposts when it's obvious there can't be one
we currently spam the /is_repost api on every single character change in the URL box even though there is no way these URLs would ever be submitted to the site

introducing a frankly conservative limit to where we start actually pinging both the api and (on the backend) the database for reposts may help in some cases

the current constant was chosen by taking the length of "http://" and adding 2 to it
2022-10-14 03:27:45 -07:00
Aevann1 948bd21f9b Revert "minor change in sorting_and_time"
This reverts commit 3a3cb0da4d.
2022-10-13 18:21:26 +02:00
Aevann1 3a3cb0da4d minor change in sorting_and_time 2022-10-13 18:21:00 +02:00
Aevann1 9f24a8ddc5 remove annoyance 2022-10-13 14:02:31 +02:00
justcool393 fb150dab8e use constant instead of literal 5 2022-10-13 00:58:33 -07:00
justcool393 c56e45aa57 create cloudflare helper 2022-10-13 00:55:15 -07:00
Aevann1 cdff11424f use charge_account everywhere 2022-10-12 18:33:00 +02:00
justcool393 fe9064a9b7
update get.py redux 2022-10-12 08:40:43 -07:00
justcool393 5c03e5a7a4
Update get.py 2022-10-12 08:33:49 -07:00
justcool393 c67406b84b use site specific patron name 2022-10-12 03:45:45 -07:00
justcool393 b92535c286 pings bypass permission 2022-10-12 02:36:29 -07:00
justcool393 db9b37de40 type hints for get functions :) 2022-10-12 02:22:13 -07:00
justcool393 96879894af remove 417 (use 409) and reword 418 msg 2022-10-12 02:00:18 -07:00
justcool393 5377472146 show correct max video size 2022-10-12 01:53:23 -07:00
justcool393 ca7fa50419 remove 414 and change 413 msgs
* use 413 for videos and put explanatory text there
* add style text for 413 as well
2022-10-12 01:52:08 -07:00
Snakes 166e33dc38
Clarify architecture of sort_objects. 2022-10-12 04:05:26 -04:00
Aevann1 2aa281e8c8 refactor sorting again (untested) 2022-10-12 09:03:28 +02:00
Aevann1 925ec12141 more shadowban refactor 2022-10-12 08:53:32 +02:00
Aevann1 81b2e04ff7 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-12 08:40:04 +02:00
justcool393 dcd875c40c max image and video size are constants now
* the error pages still need to be fixed
2022-10-11 23:27:17 -07:00
Aevann1 e1ee9a69e4 refactor seeing shadowbanned shit (untested) 2022-10-12 08:24:30 +02:00
Aevann1 318a20250c Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-12 08:10:15 +02:00