justcool393
4037eed228
use constant instead of literal 200 for poll bets
2022-10-04 23:07:53 -07:00
justcool393
0a82ca0c30
don't reply to deleted posts/comments
2022-10-04 17:18:19 -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
bf9a2398da
add nginx to docker
2022-10-04 21:48:52 +02:00
Aevann1
08d6a9c901
Revert "add nginx to docker"
...
This reverts commit 7c1eb4c6e3
.
2022-10-04 21:35:02 +02:00
Aevann1
d98e4c9c1c
convert repo from CRLF to LF
2022-10-04 17:24:58 +02:00
Snakes
6757831e0f
Sanitize more special characters in search.
2022-10-04 01:31:27 -04:00
Aevann1
7c1eb4c6e3
add nginx to docker
2022-10-04 03:06:57 +02:00
Snakes
247318d67b
Sanitize /casino/<game> parameter input.
2022-10-03 16:40:33 -04:00
justcool393
591fe9721f
don't let shadowbanned users create holes
2022-10-03 01:18:06 -07:00
Snakes
99b6b356f0
Add comment search "quoted phrase" behavior.
2022-10-02 15:50:05 -04:00
Snakes
e05b1197c6
Identify benefactors in listing.
2022-10-02 15:37:22 -04:00
Snakes
81dda4f6cc
Serve static user content with nginx.
2022-10-02 14:27:18 -04:00
Snakes
0dfa4525fa
Remove special characters from search query.
2022-10-02 07:42:42 -04: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
Snakes
216022a5a0
Comments search: utilize lexeme config.
2022-10-02 06:24:03 -04:00
Snakes
701f64c91b
Change comment search to use tsvector.
2022-10-02 04:55:39 -04:00
justcool393
b79a89560f
add requested kind to set if not present
...
fixes issue where the kind wouldn't show up on the list and cause a error in template rendering
2022-10-02 00:50:59 -07:00
Snakes
cd0b564401
Add 'added' column to /marseys.
2022-10-01 18:27:51 -04:00
Aevann1
04895e1fac
remove my effortpost algo (cant have shit in detroit)
2022-10-01 19:17:58 +02:00
Aevann1
a7acbe9831
show our email to loggedout visitors in /contact
2022-10-01 12:14:46 +02:00
Aevann1
7e7c14fe22
fix bug in /live
2022-10-01 11:43:16 +02:00
Aevann1
7212fa44ef
give ppl an explanation when searching comments
2022-10-01 11:38:14 +02:00
justcool393
fc623b7201
get id fix for sbs
2022-09-30 22:16:15 -07:00
justcool393
f9d6976202
include shadowbanned users here
2022-09-30 22:08:18 -07:00
Aevann1
6a0fd03548
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-01 01:38:09 +02:00
Aevann1
d9a57cf201
debug /live
2022-10-01 01:38:07 +02:00
justcool393
78b668a870
don't duplicate checks for users
2022-09-30 15:51:17 -07:00
justcool393
40c2360d00
don't duplicate checks for comments
2022-09-30 15:51:17 -07:00
justcool393
057bc360bf
don't duplicate get checks for posts
2022-09-30 15:51:17 -07:00
Aevann1
08fc034973
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-09-30 23:07:56 +02:00
Aevann1
30d4f5e902
allow carp and snakes to see /patrons
2022-09-30 23:07:53 +02:00
justcool393
7e3f43c9ab
unperson shadowbanned users ( #373 )
...
* unperson shadowbanned users
if a shadowbanned user copes, does anyone hear them seethe?
* unperson shadowbanned users (by id)
* don't import that
* Add include_blocks.
We don't always want to request blocks from the db when we have a user set
* block shadowbanned users from hole mod tools
* don't allow awarding shadowbanned things
* fix conflict
* gracefully use get_account when specified and also add include_blocks flag to get_account as well
2022-09-30 14:00:58 -07:00
Aevann1
9e98494b65
fix betting rewards
2022-09-30 17:38:47 +02:00
Aevann1
52c5dd6028
disable /search/comments for now
2022-09-30 14:20:53 +02:00
Aevann1
0136a4a37f
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-09-30 14:19:54 +02:00
Aevann1
4a1865742a
fix bad code in /live
2022-09-30 14:19:48 +02: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
7b7092b5f5
better syntax in /live
2022-09-29 20:29:44 +02:00
Aevann1
5b1e873e54
fix /live
2022-09-29 20:25:01 +02: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
8017c03e97
limit seeing carp's followers only on WPD
2022-09-29 17:58:49 +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
c67b4eea0a
limit new users following carp to WPD
2022-09-29 16:16:35 +02:00
Aevann1
51d7cd6d7e
fix shit with hole logs
2022-09-29 12:18:27 +02:00
Aevann1
09cc43060d
add hole mod logs ( #380 )
2022-09-29 11:39:37 +02:00
Aevann1
03e925fb3c
use ban_reason column as a reason for shadowbanning too
2022-09-29 08:36:59 +02:00
Aevann1
2f16510183
specify which error it was in process_streamer()
2022-09-29 08:08:40 +02:00
Aevann1
87f3af5968
generate notifs for moving posts
2022-09-29 08:05:42 +02:00
Snakes
4a54c6219a
Add trailing final newlines to source files.
...
Touched a ton of files to finally standardize on having trailing
final newlines, as best practice recommends and so our devs stop
accidentally fighting each other over it.
This was performed automatically with the following:
git ls-files -z '*.py' | while IFS= read -rd '' f; \
do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
git ls-files -z '*.css' | while IFS= read -rd '' f; \
do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2022-09-29 01:43:29 -04:00
Snakes
11a9efb7cb
Amend f05ec93b: blackjack state implied constraint.
2022-09-29 00:36:58 -04:00
Snakes
f05ec93b95
Add gambling wager badge logic.
...
This commit touches more files than it ought to because this change
required untangling some circular imports, notably a lingering import
of files.helpers.slots in helpers.actions (presumably from old Snappy
gambling logic) and the User.active_blackjack_game accessor. Otherwise,
the logic is fairly straightforward.
2022-09-29 00:26:50 -04:00
justcool393
6c8faf6de7
add API version of stats page ( #378 )
...
statsmaxxing
2022-09-28 10:14:40 +02:00
justcool393
e5de8cc66c
add mod action if JL3 kicks post from hole ( #377 )
...
* add mod action if JL3 kicks from hole
* don't be dumb
2022-09-27 18:09:08 -04:00
Snakes
9914fd215c
Fix leaderboard_thread dispatched as blocking.
2022-09-27 02:32:42 -04:00
Outrun Colors
430cbe676c
Nest if condition in chat
2022-09-27 00:31:23 -05:00
Outrun Colors
300a5164f6
Add DMing to chat
2022-09-27 00:15:22 -05:00
Snakes
77ed5728c4
Restore mistakenly removed commenting logic.
2022-09-26 22:44:06 -04:00
Snakes
528d26b094
Fix /marseys missing listdir import.
...
Apparently the /marseys route was getting its listdir from one of
the `from os import listdir` removed in fa4dee419d
. static.py
already has an import os, so we just use the fully qualified
os.listdir.
2022-09-26 21:44:34 -04:00
Aevann1
faf4403e26
check for duplicate images when admigger threads for banners/sidebar/badges are used
2022-09-27 03:24:20 +02:00
Aevann1
cc85cab01d
make badges 300px instead
2022-09-27 02:48:03 +02:00
Aevann1
fa4dee419d
remove unnecessary imports
2022-09-27 02:47:52 +02:00
Aevann1
9a6dda2e1c
fix syntax error in last commit
2022-09-27 02:22:06 +02:00
Aevann1
6b01467102
check for existing subscription
2022-09-27 02:19:52 +02:00
Aevann1
72e605eabb
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-09-26 10:58:46 +02:00
Aevann1
ffa83ad3e7
disallow permabanned hole mods from pinning or unpinning
2022-09-26 10:58:43 +02:00
Snakes
0b416dcf2c
Revise marsify logic.
2022-09-26 02:09:26 -04:00
Aevann1
e474a5f42d
go from dutch to greek in /live
2022-09-26 07:08:29 +02:00
Aevann1
37e1f25624
make using proxies only happen in 3 circumstances again
2022-09-26 06:01:25 +02:00
Aevann1
fea1f276d9
log /live errors
2022-09-26 04:46:56 +02:00
Aevann1
f2af76c905
add proxies on hcaptcha requests
2022-09-26 04:40:58 +02:00
Aevann1
968c55f8fc
add proxies on discord requests
2022-09-26 04:40:46 +02:00
Aevann1
7e4e98887b
remove proxies from cloudflare
2022-09-26 04:39:03 +02:00
Aevann1
05079a40f4
limit banners to 1MB
2022-09-26 03:41:03 +02:00
Snakes
b0529716bc
Remove voluntary marsify toggle.
2022-09-25 21:32:36 -04:00
Aevann1
4c26a7cd02
limit sidebar and badge images to 1MB
2022-09-26 03:27:31 +02:00
Aevann1
2dc7805df8
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-09-26 03:15:41 +02:00
Aevann1
8fcc91a43e
reduce resize values
2022-09-26 03:15:36 +02:00
justcool393
a8e74d3355
delete the spider badge if unspidering, not the marsify one ( #374 )
2022-09-25 16:17:11 -04:00
Aevann1
a2f578c7b7
fix exploit
2022-09-25 13:30:22 +02:00
Aevann1
3339baee54
fixing /live
2022-09-25 13:28:53 +02:00
Aevann1
5a97a6f6e6
allow pcm /live to enter channel link
2022-09-25 08:45:19 +02:00
Aevann1
8a85c2413c
add consent
2022-09-25 08:31:46 +02:00
Aevann1
a28a4664c2
huh?
2022-09-25 08:30:49 +02:00
Aevann1
9d9783fe0e
fix
2022-09-25 08:27:58 +02:00
Aevann1
10d09f076c
fix
2022-09-25 08:18:03 +02:00
Aevann1
c79067f7f1
make it possible to add channels by name
2022-09-25 08:14:21 +02:00
Aevann1
8d6937e237
add obese
2022-09-25 07:46:02 +02:00
Aevann1
13a3d5c27e
fix
2022-09-25 07:45:02 +02:00
Aevann1
f8fccd34db
allow me to add channels
2022-09-25 07:43:44 +02:00
Aevann1
4ebd8fb552
limit adding channels to kip
2022-09-25 07:42:29 +02:00
Aevann1
92bdd67884
debug
2022-09-25 07:31:55 +02:00
Aevann1
fc2758df50
fix
2022-09-25 07:24:59 +02:00
Aevann1
63a7183f7e
fix /live regex
2022-09-25 06:53:53 +02:00
Aevann1
2b0a798fec
fix
2022-09-25 06:40:19 +02:00
Aevann1
5d30c3a632
fix
2022-09-25 06:38:43 +02:00