Aevann1
88e7f30f04
make !SLOTS work too
2022-10-31 02:20:50 +02:00
justcool393
4ff2a55ed2
fix prev
2022-10-30 15:36:30 -05:00
justcool393
d61eda8427
merge i think
2022-10-30 15:08:20 -05:00
Aevann1
e50e2fcae8
fix prev commit
2022-10-30 20:47:49 +02:00
Aevann1
62d3738e46
rename ADMIGGER variable to ADMIGGER_THREADS for clarity
2022-10-30 20:45:53 +02:00
justcool393
b9f2a7123e
actions: move pizzashill autovotes to actions
2022-10-30 01:03:23 -05:00
Aevann1
f09ec0ca17
restore slot gambling in comments
2022-10-30 02:36:23 +02:00
justcool393
35e2128dec
get: use function to get voted and blocked properties ( #425 )
...
* get: comments and posts: use get function from get.py
* fix prev commit
* move filter to correct place
* fix error and also log so i can figure out what's wrong
* comments: add some more trace logging
* should_keep_func always acts as return True if None is passed in
* remove logging code
2022-10-28 19:13:37 -05:00
justcool393
8fe73cb68e
refactor blackjack a bit
2022-10-20 19:28:05 -05:00
Aevann1
465160dbe6
dont include SITE_FULL in post urls
2022-10-18 13:09:53 +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
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
justcool393
c56e45aa57
create cloudflare helper
2022-10-13 00:55:15 -07:00
justcool393
ee85b5577a
use error handlers in cases where we can
2022-10-12 08:55:42 -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
Aevann1
925ec12141
more shadowban refactor
2022-10-12 08:53:32 +02:00
justcool393
501fbbf5d3
move antispam code to actions
2022-10-11 22:34:55 -07:00
Aevann1
466867afd1
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-11 18:41:12 +02:00
Aevann1
e3a3cbd358
add "hot" comment sorting
2022-10-11 18:41:09 +02:00
justcool393
c0acb1722b
abort a bunch of stuff where we manually returned JSON
2022-10-11 08:40:19 -07:00
justcool393
456dd43bba
replace "if not FEATURES" with wrapper
2022-10-11 00:33:23 -07:00
justcool393
75e593da00
Revert "feature required wrapper"
...
This reverts commit 8700bcc5ee
.
2022-10-10 02:54:47 -07:00
justcool393
f872f734ec
constantify a bunch of things
...
* sign up follow id is now a thing (if not specified will just msg carp instead)
* notification thread id is also a constant now
* blackjackbtz id is a constant, used for i think special PM handling
2022-10-09 23:37:42 -07:00
justcool393
8700bcc5ee
feature required wrapper
2022-10-09 23:16:05 -07:00
justcool393
d6f4e20f7d
use constant for BBBB_ID instead of 12125
2022-10-09 07:03:21 -07:00
justcool393
56e800fd9d
move basedbot to actions as well
2022-10-09 06:49:08 -07:00
justcool393
63c7fe0c29
move zozbot and longpostbot into the actions helpers
2022-10-09 06:28:18 -07:00
justcool393
87fd8ee57a
comment sanity checks and constantization
...
* make HTML body length a constant and use it
* abort before uploads and other tasks if comment level is too deep
* what a nightmare of two functions, please do better next time
2022-10-09 05:54:46 -07:00
justcool393
c9ab2c515b
remove some more vestiges
...
get_post and get_comment both handle this
2022-10-09 01:25:21 -07:00
justcool393
8ea52ba95c
constantify comment body length limit and transfer limit
2022-10-09 00:20:28 -07:00
Snakes
556b3e3c4e
PCM: don't rescale uploaded banners.
2022-10-07 21:16:56 -04:00
justcool393
0627a12bc5
don't let users comment on things they can't see
2022-10-07 03:22:07 -07:00
justcool393
e372158729
Merge branch 'frost' into permissions-refactor
2022-10-06 19:05:42 -07:00
justcool393
e93e2d9ca9
convert some more >s to >=s
2022-10-06 01:40:21 -07:00
Aevann1
96f4f8499f
fix 500 errors
2022-10-06 09:30:38 +02:00
justcool393
06f88e8a4a
post based permissions mostly
2022-10-05 21:45:54 -07:00
justcool393
2fc3044d5b
shadowban perms and stuff
2022-10-05 19:24:37 -07:00
justcool393
d5a48871f8
user ban and also fix global hole mod a bit i hope i didn't screw up the templates
2022-10-05 18:58:43 -07:00
justcool393
04f24cd8fd
content moderation permission level
...
holy crap there's a lot
2022-10-05 17:57:08 -07:00
Aevann1
2f979b859b
generate modlogs when a hole janny toggles nsfw
2022-10-06 01:24:54 +02:00
justcool393
0a82ca0c30
don't reply to deleted posts/comments
2022-10-04 17:18:19 -07:00
Aevann1
3bf62c6ff0
add missing ban_reason when shadowbanning
2022-10-02 13:31:02 +02:00
Aevann1
da4ade067d
make pizza's vote on himself be the first
2022-10-02 12:35:04 +02:00
Aevann1
09cc43060d
add hole mod logs ( #380 )
2022-09-29 11:39:37 +02:00
Snakes
77ed5728c4
Restore mistakenly removed commenting logic.
2022-09-26 22:44:06 -04:00
Aevann1
cc85cab01d
make badges 300px instead
2022-09-27 02:48:03 +02:00
Aevann1
05079a40f4
limit banners to 1MB
2022-09-26 03:41:03 +02:00
Aevann1
4c26a7cd02
limit sidebar and badge images to 1MB
2022-09-26 03:27:31 +02:00
Aevann1
8fcc91a43e
reduce resize values
2022-09-26 03:15:36 +02:00