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
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
justcool393
c428a59397
v -> v and v.client
2022-10-15 04:18:07 -07:00
justcool393
c2b6c5903d
fix 500 in search.py
2022-10-15 03:30:13 -07: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
b1efa072e6
rename /agendaposters to /chuds
2022-10-15 08:55:54 +02:00
Aevann1
afdec9a5a9
minor tweak to avoid double-notifying ppl
2022-10-14 20:35:13 +02: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
3b86227872
refactor asset submissions a bit
2022-10-14 11:03:47 -07: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
6a11de21e0
fix 500 error
2022-10-14 17:29:26 +02: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
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
6b0e6b49ee
disallow discord links in DMs
2022-10-13 15:26:59 +02:00
Aevann1
7a6b4406ef
remove redundant shadoban filters
2022-10-13 12:47:55 +02: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
ee85b5577a
use error handlers in cases where we can
2022-10-12 08:55:42 -07: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
96879894af
remove 417 (use 409) and reword 418 msg
2022-10-12 02:00:18 -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
eaf361ad91
API: set the status code on errors
2022-10-12 01:17:48 -07: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
Aevann1
2aa281e8c8
refactor sorting again (untested)
2022-10-12 09:03:28 +02:00
justcool393
bb1658e0a0
WPD: remove vestigial social and music filer code
2022-10-12 00:03:08 -07:00
Aevann1
925ec12141
more shadowban refactor
2022-10-12 08:53:32 +02:00
justcool393
941b5fa82d
vote realness is in user model
2022-10-11 23:47:47 -07:00
Aevann1
e1ee9a69e4
refactor seeing shadowbanned shit (untested)
2022-10-12 08:24:30 +02:00
Aevann1
b1abd33835
refactor sorting
2022-10-12 08:10:11 +02:00
justcool393
7ee3c78b2e
ree
2022-10-11 22:51:04 -07:00
justcool393
501fbbf5d3
move antispam code to actions
2022-10-11 22:34:55 -07:00
justcool393
5591d7d574
fix real votes
2022-10-11 22:27:27 -07:00
Aevann1
04ecef4214
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 04:06:44 +00:00
Aevann1
46b310cdf3
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 06:06:18 +02:00
Aevann1
cdfbbd0217
fix wrong name for feature
2022-10-12 06:06:11 +02:00
Aevann1
9ef74dd642
sneed
2022-10-12 00:00:04 +00:00