Aevann1
d7091c4799
force posts by PERMA-chudded users to go to /h/chudrama
2022-10-30 00:17:16 +02:00
Aevann1
227d074da7
remove redundant "noreferrer"
2022-10-29 23:46:35 +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
Aevann1
b816973f38
ignore subdomains in banned_domains logic
2022-10-28 20:12:40 +02:00
Aevann1
94d1a7d98d
fix
2022-10-28 19:13:24 +02:00
Aevann1
8999a6ea29
fix
2022-10-28 19:08:52 +02:00
Aevann1
834516cd51
fix prev commit
2022-10-28 00:42:32 +02:00
Aevann1
1a35e2ec6a
refactor banned domains
2022-10-28 00:37:29 +02:00
Aevann1
ad358650e1
remove retarded bullshit I wasn't consulted about
2022-10-27 19:53:08 +02:00
Aevann1
8795ecfb58
fix thumbnails
2022-10-26 16:34:33 +02:00
Aevann1
883ab31cc9
Describe what Poor Mode does
2022-10-25 20:20:43 +02:00
Aevann1
fbeac461ca
refactor poorcel mode
2022-10-25 18:07:44 +02:00
Aevann1
3b16c8f3e3
close image files after ur done
2022-10-25 17:41:23 +02:00
gooseman
8b98eabbb9
simultaneous hosts
2022-10-24 15:28:43 -07:00
justcool393
ec1affcf85
posts: add MasterLawlz specific actions
2022-10-23 12:01:00 -05:00
Aevann1
7733449169
fix 500 error
2022-10-21 13:30:32 +02:00
justcool393
8fe73cb68e
refactor blackjack a bit
2022-10-20 19:28:05 -05:00
justcool393
360cff7e8f
add post bypass checking perm
2022-10-20 17:51:29 -05:00
Aevann1
465160dbe6
dont include SITE_FULL in post urls
2022-10-18 13:09:53 +02:00
Aevann1
3e7b37ec35
dont redirect to a repost for chadmins
2022-10-18 12:26:44 +02:00
Aevann1
44fca7f086
ripbozo
2022-10-17 21:13:33 +02:00
Snakes
2efe5d1522
Fix changelog channel messaging on draft publish.
2022-10-16 13:49:24 -04:00
justcool393
4b2ce3b7a0
use perms constant for unclub_post
2022-10-16 03:41:54 -07:00
justcool393
f4af073253
fix 17 potential 500s
2022-10-16 02:51:42 -07:00
justcool393
32a4693da9
fix a couple of potentially rare 500s
2022-10-15 14:35:24 -07: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
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
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
7a6b4406ef
remove redundant shadoban filters
2022-10-13 12:47:55 +02: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
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
b1abd33835
refactor sorting
2022-10-12 08:10:11 +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
Snakes
33d99f86e6
Temporary deletion special case by Carp request.
2022-10-10 23:48:16 -04:00
Snakes
69f1b09a76
Restrict editing old posts (harmonize comments).
2022-10-10 23:40:08 -04:00
justcool393
75e593da00
Revert "feature required wrapper"
...
This reverts commit 8700bcc5ee
.
2022-10-10 02:54:47 -07:00
justcool393
8700bcc5ee
feature required wrapper
2022-10-09 23:16:05 -07:00
Aevann1
356c9f1219
add "(Admin)" to messages sent to users due to admin actions (for clarity to new users)
2022-10-10 08:11:17 +02:00
justcool393
d6f4e20f7d
use constant for BBBB_ID instead of 12125
2022-10-09 07:03:21 -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
c4c3d6cf49
Merge branch 'frost' into permissions-refactor
2022-10-06 19:55:36 -07:00
Aevann1
3ecb1b4f9a
generate a mod log for CCing or unCCing posts and notify OP
2022-10-07 04:48:31 +02:00
justcool393
e372158729
Merge branch 'frost' into permissions-refactor
2022-10-06 19:05:42 -07:00
Aevann1
3cf838af29
fix thumbnails and add opera-proxy to docker
2022-10-06 21:07:45 +02:00
Snakes
24167b1d09
Fix thumbnail_thread passing uploader to media.
2022-10-06 05:15:21 -04:00
justcool393
8db6b3f7fd
improve POST_TO_CHANGELOG check
2022-10-06 02:09:46 -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
43f137208a
bypass pin limit perm and also fix a shadowban perm
2022-10-05 19:51:30 -07:00
justcool393
d8610b34b6
changelog permission and don't query db for badges if admin with perm level
2022-10-05 19:45:05 -07:00
justcool393
2fc3044d5b
shadowban perms and stuff
2022-10-05 19:24:37 -07:00
justcool393
591e6342bb
editing permissions
2022-10-05 18:24:37 -07:00
justcool393
0dfff1f4f6
editing posts to JL3 (will be constantified soon)
2022-10-05 18:03:23 -07:00
justcool393
04f24cd8fd
content moderation permission level
...
holy crap there's a lot
2022-10-05 17:57:08 -07:00
justcool393
2a66104d8b
improve body for edit_post
2022-10-05 16:35:44 -07:00
justcool393
d58351637c
use constants
2022-10-05 16:35:44 -07:00
justcool393
093ced7b20
introduce constant for post and title length
2022-10-05 16:35:44 -07:00
justcool393
2a53df20ff
consistency in return error and returned status code
2022-10-05 16:35:44 -07:00
justcool393
88ae00deef
sanitize raw bodies
2022-10-05 16:35:44 -07:00
justcool393
19b2f71c3b
improve raw title sanitization and don't check the same thing like 5 times
2022-10-05 16:35:44 -07:00
Aevann1
2f979b859b
generate modlogs when a hole janny toggles nsfw
2022-10-06 01:24:54 +02:00
justcool393
9575e11b8b
add get_sub_by_name function
2022-10-05 03:37:29 -07:00
justcool393
d5bd3463e8
disallow permanently banned users from untoggling NSFW
...
can help i guess prevent abuse and creating a situation where dueling NSFW toggles have to be set
2022-10-04 14:09:25 -07:00
Aevann1
fabbc7a1a3
allow hole jannies to mark posts and comments in their holes as +18
2022-10-04 22:10:59 +02: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
justcool393
057bc360bf
don't duplicate get checks for posts
2022-09-30 15:51:17 -07:00
justcool393
c1ca1a02ac
only attempt to parse HTML content types for titles ( #382 )
...
* only attempt to parse HTML content types for titles
also don't try to get submission titles for .gifv, .tif, .tiff
* ratelimit to 3 per minute instead of 6 minutes
no one will ever need more than 3 requests to this endpoint per minute - justcool393
6 per minute is already kinda a lot for this endpoint, i think aggressively ratelimiting this one is fine, especially since it's a minute ratelimit
2022-09-30 14:13:06 +02:00
justcool393
0617bb154c
use get_post to handle getting a post ( #381 )
...
why did we ever catch an exception throw it away, then catch an exception (something get_post already does) and then finally get the post
2022-09-30 01:44:32 -04:00
Aevann1
6b0c734254
Revert "make the default for notify True"
...
This reverts commit c192019a22
.
2022-09-29 20:05:35 +02:00
Aevann1
c192019a22
make the default for notify True
2022-09-29 19:58:19 +02:00
Aevann1
c16654c4c7
make sure u dont try to get the title of a file (always times out)
2022-09-29 16:45:59 +02:00
Aevann1
09cc43060d
add hole mod logs ( #380 )
2022-09-29 11:39:37 +02:00
Aevann1
37e1f25624
make using proxies only happen in 3 circumstances again
2022-09-26 06:01:25 +02:00
Aevann1
dd0f8fbed7
proxy all requests we make
2022-09-25 05:23:50 +02:00
Aevann1
c12f7a5f9a
commit before rendering
2022-09-22 22:20:29 +02:00
Aevann1
7d39cdb520
minor auth_desired refactor
2022-09-20 02:51:01 +02:00
Aevann1
ff7a54e842
Revert "test ratelimiting on devrama"
...
This reverts commit 1d83412545
.
2022-09-19 21:43:47 +02:00
Aevann1
1d83412545
test ratelimiting on devrama
2022-09-19 21:35:58 +02:00
Aevann1
f54791cc4c
remove categories
2022-09-19 20:04:30 +02:00
Aevann1
2fb4ebdcb0
minor sanitize refactor
2022-09-16 18:30:34 +02:00
Aevann1
4abf75edc0
add error codes
2022-09-12 11:52:07 +02:00
Aevann1
ae90eb1cf2
simplify house checking logic
2022-09-11 03:53:16 +02:00
Aevann1
c1aae95d16
restore "notify followers" checkbox
2022-09-10 09:00:45 +02:00
Aevann1
0f232b264c
refactor torture_ap
2022-09-05 22:05:04 +02:00
Aevann1
6727d4005c
better stripping syntax
2022-09-05 03:44:38 +02:00
Aevann1
842300ac6e
remove code irrelevant now (not broken this time I hope)
2022-09-05 01:21:48 +02:00
Aevann1
0c32d56cd6
casino + style shit
2022-09-05 01:15:37 +02:00
outruncolors
5e1d98a3bf
WIP: Add Casino (Do Not Merge) ( #341 )
...
* Add new /casino route and template
* Consolidate lottery into casino and add initial template for slots
* Change /lottery route to /casino and replace icon with usd symbol and change sitewide const to reflect change
* Hook up new slots method to casino
* Enable Marseybux spending in casino slots
* Add UI for playing blackjack in casino
* First connection of blackjack UI to backend
* Add protective clause thanks to help from carpathianflorist.
* Create new Casino_Game relation and persist inside of blackjack
* Connect new slots behavior to Casino_Game table
* Create UI action management logic
* Add blackjack game status checker which adds persistence for blackjack
* Gonna handle this better, hold on
* Reorganize blackjack helper methods
* Reorganize casino.js to account for new changes
* Connect up to frontend
* Little changes ya know
* Display a message when winning in Blackjack
* Fix some issues with double down and insure
* Revert "remove owoify-py from requirements"
This reverts commit 4454648ea2
.
* A little casino styling change
* Reorganize into a casino block
* Smallenize the card'
* Remove references to old game data on comments
* Add sql migration file
* Remove logic to drop old columns
* Fix two forgotten conflicts
2022-09-04 22:53:34 +02:00
Aevann1
8ed450e980
fix edge case with pinning child comments
2022-09-02 06:13:40 +02:00
Aevann1
5032a9aec2
fix pinned child comments
2022-09-02 02:46:17 +02:00