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
bcf4450cbd
remove /sql folder
2022-10-15 09:06:18 +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
Aevann1
e886d27270
sneed
2022-10-15 00:00:05 +00: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
Aevann1
423ad25d2a
fix typo
2022-10-14 20:28:46 +02:00
Aevann1
2411053d55
add tiered pins
2022-10-14 20:28:20 +02:00
justcool393
df1eedc8d9
button1 button2
2022-10-14 11:20:23 -07:00
justcool393
3b86227872
refactor asset submissions a bit
2022-10-14 11:03:47 -07:00
Aevann1
afd11e376f
fix 500 error
2022-10-14 19:15:29 +02:00
Aevann1
f2a5c8f5d4
add whitelist of badge_granting on WPD, and disallow removing award badges
2022-10-14 19:11:39 +02:00
Aevann1
77312317f3
get rid of Boolean columns for permenant awards
2022-10-14 18:59:49 +02:00
Aevann1
f9840d5c71
sneed
2022-10-14 16:00:08 +00:00
justcool393
09027e51d7
reply to edit
2022-10-14 08:43:58 -07:00