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
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
Aevann1
661bf3af67
remove unnecessary margin in /transfers
2022-10-14 17:31:35 +02:00
Aevann1
4cbe5c41eb
even higher margins
2022-10-14 17:31:02 +02:00
Aevann1
6a11de21e0
fix 500 error
2022-10-14 17:29:26 +02:00
Aevann1
efe0ff091a
increase margins in log
2022-10-14 17:28:07 +02:00
justcool393
36b370dd14
use comment length for snappy, not post
2022-10-14 06:19:47 -07:00
justcool393
6efb9b41b4
use createXhrWithFormKey in the lottery
2022-10-14 06:07:47 -07:00
justcool393
bb9ab04a90
spaces -> tabs
2022-10-14 06:07:47 -07:00
justcool393
0eaed637be
use createXhrWithFormKey in more places
2022-10-14 06:07:47 -07:00
justcool393
f22ef3a7e5
refactor post_toast_callback a bit and create createXhrWithFormKey function
2022-10-14 06:07:47 -07:00
justcool393
6884774906
showToast adjusments so we can use toast 2 and adjust them for ALMOST all of them
2022-10-14 06:07:47 -07:00
justcool393
c12f5ae43a
use showToast in most places that we can
2022-10-14 06:07:47 -07:00
Aevann1
5e55ff7f90
make the modlog note for updating assets link to te updated asset
2022-10-14 14:38:06 +02:00
Aevann1
89a0ff4a4b
remove username reservation system
2022-10-14 14:01:06 +02:00
Aevann1
6c2f2c5404
fix expanded images
2022-10-14 13:44:03 +02: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
justcool393
e4cbe4178a
tabify
2022-10-14 02:50:39 -07:00
justcool393
29af9dbbf4
move fn
2022-10-14 02:50:39 -07:00
justcool393
7620d8d8cd
show the error toast on errors, not the success toast
2022-10-14 02:50:39 -07:00
justcool393
3a11cfd603
rename classname to className
2022-10-14 02:50:39 -07:00
justcool393
b06ee9ac9b
refactor of post_toast
2022-10-14 02:50:39 -07:00
justcool393
2559794135
Move stuff we put in bootstrap.js to a new core.js file
2022-10-14 02:50:39 -07:00
Aevann1
caf5034608
same last commit
2022-10-13 21:43:48 +02:00
Aevann1
de6de0acae
fix security policy in chat.html
2022-10-13 20:42:46 +02:00
Aevann1
3888b29983
potential solution to the chat docker problem
2022-10-13 20:21:02 +02:00
Aevann1
e0559301d5
restore horizontal margin for expanded images
2022-10-13 19:34:31 +02:00
Aevann1
948bd21f9b
Revert "minor change in sorting_and_time"
...
This reverts commit 3a3cb0da4d
.
2022-10-13 18:21:26 +02:00
Aevann1
6cf3ac2cc5
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-13 18:21:02 +02:00
Aevann1
3a3cb0da4d
minor change in sorting_and_time
2022-10-13 18:21:00 +02:00
justcool393
e511fec4aa
i don't know why this committed
2022-10-13 08:15:33 -07:00
justcool393
f7ca9aa248
fix the weird text scrolling bug (hopefully)
...
* this seemed like an odd floating point bug with scrollTo(), maybe? i think this should fix it
2022-10-13 08:11:47 -07:00
Aevann1
73bd39835b
fix cursor on comment and post scores
2022-10-13 16:44:05 +02:00
Aevann1
a5eaeb809d
fix 500 error
2022-10-13 16:26:35 +02:00
Aevann1
caccb2307d
fix this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2887592?context=8#context
2022-10-13 16:25:10 +02:00
Aevann1
6b0e6b49ee
disallow discord links in DMs
2022-10-13 15:26:59 +02:00
Aevann1
9f24a8ddc5
remove annoyance
2022-10-13 14:02:31 +02:00
Aevann1
86d5da7de6
fix this https://rdrama.net/post/112582/chudded-award-now-destroys-hours-of
2022-10-13 13:55:29 +02:00
Aevann1
7a6b4406ef
remove redundant shadoban filters
2022-10-13 12:47:55 +02:00
justcool393
fb150dab8e
use constant instead of literal 5
2022-10-13 00:58:33 -07:00
justcool393
0f56b8de5e
i need a d ðŸ¤
2022-10-13 00:55:15 -07:00
justcool393
c56e45aa57
create cloudflare helper
2022-10-13 00:55:15 -07:00
Snakes
e7da195645
Revert "Disable Cloudflare API call timing out admin_home."
...
This reverts commit ed27225d10
.
The proximal cause of the request timeout issues was the /comments
performance issues, which seem to have been resolved by 2edeb4875
.
Probably still need to refactor this, but for now it's likely fine.
2022-10-13 02:12:35 -04:00
Snakes
2edeb48751
Refactor /comments to use single query.
2022-10-13 01:52:54 -04:00
Snakes
ed27225d10
Disable Cloudflare API call timing out admin_home.
2022-10-13 00:47:37 -04:00
Snakes
e5af46c4ae
Fix shadow visibility logic.
2022-10-13 00:10:34 -04:00
Aevann1
cdff11424f
use charge_account everywhere
2022-10-12 18:33:00 +02:00
justcool393
d04c170466
partially revert this for main
2022-10-12 09:01:43 -07:00
justcool393
ee85b5577a
use error handlers in cases where we can
2022-10-12 08:55:42 -07: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
Aevann1
7316d8e827
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 15:23:49 +00:00
Aevann1
f765ac650a
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 17:23:22 +02:00
Aevann1
31a3b987d6
fix 500 error
2022-10-12 17:23:15 +02:00
Aevann1
944eab9985
sneed
2022-10-12 12:00:04 +00:00
justcool393
c67406b84b
use site specific patron name
2022-10-12 03:45:45 -07:00
justcool393
7b3361cfb7
temporary (maybe) sidebar and banner processing fn
...
* also make existing badge return 409 instead of 403
2022-10-12 03:04:34 -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
Aevann1
32bede574b
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 11:04:35 +02:00
Aevann1
5849def6c1
dont show vote creation times if they're under 1599343262
2022-10-12 11:04:26 +02: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
3482f97bfb
Remove accidentally sneeded debug code.
...
We were experiencing errors on prod where is_repost would not have
either g or g.db available on request teardown, which would eventually
culminate in errors.py:error_500. These haven't reoccurred for nearly
16hrs now, and the test code got caught in a 'sneed' commit. Best to
have it gone.
2022-10-12 04:32:18 -04:00
justcool393
ad52c49782
put details EVERYWHERE
...
why are there 25 of these...
2022-10-12 01:25:32 -07:00
justcool393
eaf361ad91
API: set the status code on errors
2022-10-12 01:17:48 -07:00
Aevann1
db0fd8a0e9
sneed
2022-10-12 08:09:03 +00:00
Snakes
166e33dc38
Clarify architecture of sort_objects.
2022-10-12 04:05:26 -04:00
Aevann1
d18e247513
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 09:03:30 +02:00