Snakes
4f849c2c36
Fix userpage hat counter showing equipped.
...
Essentially, just needed to not reuse owned_hats.
2022-11-09 10:32:14 -05:00
Snakes
e0f43c3668
Remove is_nofollow from backend.
2022-11-09 10:05:36 -05:00
Snakes
c9aee3ebb8
Eager load badge_def with badge.
...
Removes N guaranteed queries when rendering a userpage for a user with
N badges. We need the badge_def to provide nearly all properties of a
Badge, and it's nearly free with a one-to-one on indexed columns.
2022-11-09 09:25:47 -05:00
Snakes
ebb3957f41
Eager load submission listing relationships.
2022-11-09 09:16:22 -05:00
justcool393
26549a6e66
remove logged out routes ( #433 )
...
* remove /logged_out/ routes
* update sitemap, remove users route, and update header
* cloudflare cookie
* only mess with the cookie whenever we desire auth
* sitemap: (small) improvements
sitemap: fix little bug i introduced
sitemap: fix login redirects for /id/ routes
* sitemap: remove duplicate entry
* contact is auth desired
* imports: don't import what we don't need and bind late to the db
* praying to god this works
* keep yourself safe
* oh i actually need to commit and push lol
* import Sub
* t
* refix cache purger
2022-11-09 00:35:24 -05:00
Aevann1
39297b7c22
remove badges from popovers
2022-11-08 15:58:34 +02:00
Aevann1
8b1f76f727
add hole actions notifs for hole mods
2022-11-08 15:49:43 +02:00
justcool393
0fffa7efc0
rename truecoins to truescore
2022-11-06 23:04:34 -08:00
justcool393
2c532af1ce
set defaults in user class and schema.sql
2022-11-06 20:06:37 -08:00
Aevann1
a664d19c37
rename 2 modlog actions
2022-11-07 03:47:27 +02:00
Aevann1
bbfb18da9a
change clearing cache terminology
2022-11-06 07:28:47 +02:00
Aevann1
87d5a0de46
improve ban modal and add chud modal
2022-11-05 04:12:22 +02:00
Aevann1
47b89df619
change the chud theme terminology to a verb instead
2022-11-05 04:12:21 +02:00
Aevann1
995d3cbc98
add postToastReload
2022-11-04 23:44:44 +02:00
Snakes
b121d39c17
Handle mod_date case when User not mod.
2022-11-03 20:10:25 -04:00
justcool393
339d5fe8f1
users: add profanity filter to censor our gosh darned potty mouthes
2022-11-03 17:59:18 -05:00
Aevann1
6b068de522
remove insane bloat
2022-11-03 21:23:37 +02:00
Aevann1
d4a99c05e9
rename postToast -> postToastSwitch and postToastCallback -> postToast for clarity
2022-11-03 21:08:22 +02:00
Aevann1
07a12380de
accomodate alt domain
2022-11-03 17:29:14 +02:00
justcool393
753178a186
subs: fix exile behavior
2022-11-02 19:47:07 -05:00
Aevann1
f73c6d46df
accomodate rdrama.com users
2022-11-02 08:31:04 +02:00
justcool393
d5812096af
voting: allow voting to cause a user's DC balance to go negative
2022-11-01 12:50:01 -05:00
justcool393
8bd637df57
leaderboards: use len
2022-11-01 03:04:56 -05:00
justcool393
08700a65b0
fix prev commit
2022-11-01 02:59:36 -05:00
justcool393
5c32713469
leaderboards: workaround jinja can't do this by setting a value for if v appears in ranking
2022-11-01 02:57:10 -05:00
justcool393
72f9c1c877
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-11-01 02:21:58 -05:00
justcool393
e90edce28a
leaderboard: fix bug with hat leaderboard
...
in my defense, there was a lot of stuff
2022-11-01 02:21:14 -05:00
justcool393
9048f5127d
leaderboards: fix usernames in tables i think
...
i'm not *happy* about this, something seems inelegant about this solution...
2022-11-01 02:17:33 -05:00
Snakes
0ea738f1bc
Exclude limited-edition hats from profile counter.
2022-11-01 03:17:15 -04:00
justcool393
55c8ce6e9d
leaderboard: set value func in all cases
2022-11-01 01:36:41 -05:00
justcool393
02dde2a96f
leaderboard: check for None explicitly instead of implicitly
...
nonetype is used in only one case, if the value is implicitly falsey (like a 0) it can *potentially* cause issues
i have no idea how to repro this, apparently @Aevann1 was able to and it's a issue on rdrama.net, but not devrama or my own testing environment
2022-11-01 01:28:18 -05:00
justcool393
d53c714bb7
users: use with_for_update() in charge_account
2022-11-01 01:14:18 -05:00
Snakes
d7aaa33c7f
Formalize unpurchasable hats.
2022-10-31 23:38:10 -04:00
Aevann1
2ba1a1e86e
remove postToast compatability function
2022-10-30 17:10:07 +02:00
Aevann1
b9c482712a
constantify file extensions
2022-10-30 16:55:43 +02:00
justcool393
5af772c1f9
users: is_visible_to is False if v doesn't exist
...
this lets us use this function even with a logged out user
2022-10-30 03:04:46 -05:00
justcool393
5d2f4d203b
users: add is_visible_to function for checking user visibility to a certain other user
2022-10-30 02:31:21 -05:00
justcool393
68deff8f60
users: is_following adjustments
...
users: move is_following check to part of the user model itself
users: also don't query followers if the username is wrong and we're redirecting anyway
2022-10-30 02:19:49 -05:00
Aevann1
d52216beda
restore historical blackjack games
2022-10-30 02:40:35 +02:00
Aevann1
f09ec0ca17
restore slot gambling in comments
2022-10-30 02:36:23 +02:00
Aevann1
85abc39632
dedup converting game state to json
2022-10-30 02:32:40 +02:00
justcool393
3a6dfdf2de
listings: constantify PAGE_SIZE as 25
...
magic numbers are bad, do better next time
2022-10-28 22:20:48 -05:00
justcool393
61cc1ddcb7
inline is_image
2022-10-28 20:52:19 -05:00
Aevann1
5719688178
use tabs, not spaces
2022-10-29 01:39:31 +02:00
Aevann1
f41b09cc07
small change to /admin/app
2022-10-28 22:13:58 +02:00
justcool393
efd63b8666
leaderboards: show user as last row if not in lb
2022-10-28 12:36:18 -07:00
justcool393
fb727ac40c
lambda fns
2022-10-28 12:36:18 -07:00
justcool393
cfeafea0d4
leaderboards: annotate the db param, fix posts and comments, and move const to const file, etc
2022-10-28 12:36:18 -07:00
justcool393
89e10db2e0
leaderboards: fix prev commit i think
2022-10-28 12:36:18 -07:00
justcool393
8873171f5c
leaderboards: refactor leaderboards to their own class
...
right now, leaderboards are complex enough that they ought to be upgraded to at least a second class thing.
this commit provides an *okay* implementation of a per-request leaderboard
there are many things to be done, including caching, persistence, etc
i don't like this like 80 parameter __init__ but it's what i've got without overengineering it imo
this is potentially already overdoing it
2022-10-28 12:36:18 -07:00
Aevann1
8e2c869c84
fix last commit
2022-10-27 19:56:11 +02:00
Aevann1
ad358650e1
remove retarded bullshit I wasn't consulted about
2022-10-27 19:53:08 +02:00
Aevann1
033738342a
add tooltip to jigsaw tier [WPD]
2022-10-25 22:03:07 +02:00
Aevann1
fbeac461ca
refactor poorcel mode
2022-10-25 18:07:44 +02:00
gooseman
67826a52e0
remove hw
2022-10-24 15:28:43 -07:00
gooseman
8b98eabbb9
simultaneous hosts
2022-10-24 15:28:43 -07:00
Aevann1
4b37bd721b
prevent carp from undoing award pins
2022-10-24 19:36:35 +02:00
Snakes
d869353fdf
Track coins awarded with votes.
...
Supports more complicated double XP shenanigans without creating
any cycles of user actions that create positive DC.
2022-10-23 18:23:51 -04:00
Snakes
75a1a9c6c8
Fix profile viewers last visit timestamp.
2022-10-20 14:29:58 -04:00
justcool393
05ba34973f
log: update_marsey actions aren't always updating the image itself
2022-10-20 11:45:25 -05:00
Aevann1
44fca7f086
ripbozo
2022-10-17 21:13:33 +02:00
justcool393
aa508fc076
remove discord
2022-10-16 05:42:52 -07:00
justcool393
32a4693da9
fix a couple of potentially rare 500s
2022-10-15 14:35:24 -07:00
justcool393
60284daa8e
replace all of the duplicated age strings with make_age_string
2022-10-15 11:11:43 -07:00
Aevann1
c29b7e0871
remove chud rotating pfps
2022-10-15 08:57:28 +02:00
Aevann1
77312317f3
get rid of Boolean columns for permenant awards
2022-10-14 18:59:49 +02:00
Aevann1
89a0ff4a4b
remove username reservation system
2022-10-14 14:01:06 +02:00
Aevann1
a5eaeb809d
fix 500 error
2022-10-13 16:26:35 +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
Snakes
e5af46c4ae
Fix shadow visibility logic.
2022-10-13 00:10:34 -04:00
Aevann1
31a3b987d6
fix 500 error
2022-10-12 17:23:15 +02: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
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
Aevann1
e3a3cbd358
add "hot" comment sorting
2022-10-11 18:41:09 +02:00
Aevann1
0ba14cb771
same as last commit
2022-10-11 16:44:43 +02:00
Aevann1
d9253ddd67
change default for "Controversial" value in user class
2022-10-11 16:43:50 +02:00
Aevann1
a20f5723bf
make sure all external urls have rel="nofollow noopener noreferrer"
2022-10-10 07:22:18 +02:00
Snakes
10921331fa
Move user hat properties for userpage to model.
2022-10-08 16:30:27 -04:00
Aevann1
acbfbb07ce
rework "are you sure?" and make it work on subscribing to posts and reverting admin actions
2022-10-08 08:06:46 +02:00
Aevann1
b515b8bd15
change DOMAIN env var to SITE (for consistency)
2022-10-08 04:06:55 +02:00
Aevann1
aa8e7055fb
rework env vars a bit
2022-10-08 02:43:04 +02:00
justcool393
48384ba8e5
convert a couple of the old constantified permissions to the new system
...
i don't want to break something so i'm keeping one of them for now but it just links
2022-10-07 01:50:20 -07:00
Snakes
e3bed60169
WPD: temporarily rewrite /videos/ post URLs.
2022-10-07 01:43:04 -04:00
justcool393
d9cc95dd71
fix global hole mod and template error
2022-10-06 20:06:22 -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
justcool393
dd7e0abd6a
fix some conflicts
2022-10-06 19:04:27 -07:00
Aevann1
4d15d76dfa
show the earlylife parantheses in more places
2022-10-07 01:31:09 +02:00
Aevann1
9d6dcca07a
remove duplicate function
2022-10-07 00:59:50 +02:00
Aevann1
3ffac6f0f6
fix tranny slur replacement in plainbody and plaintitle
2022-10-07 00:34:25 +02:00
Aevann1
8b1cf50965
fix misplaced ")" resulting in 500 error
2022-10-06 23:17:35 +02:00
justcool393
a30edea43d
resolve conflict
2022-10-06 03:37:00 -07:00
justcool393
8bed8c64e8
rearrange and rename a couple of permissions
2022-10-06 00:55:54 -07:00
justcool393
f1275b90eb
filter properly per poll: https://rdrama.net/post/79285/-/2845495
2022-10-06 00:04:46 -07:00
Aevann1
fea0ce115f
do the result of this poll https://rdrama.org/post/79285/-/2845495?context=8#context
2022-10-06 08:41:48 +02:00
Aevann1
d73990d5b2
delete granted_by column
2022-10-06 08:35:42 +02:00
Aevann1
3a4aa3f3af
fix bugs
2022-10-06 08:00:41 +02:00
justcool393
6911101e29
post bet distributions
2022-10-05 22:59:27 -07:00
Aevann1
42344cb76f
add media table
2022-10-06 07:54:04 +02:00
Aevann1
e77a117339
add created_utc column to streamers
2022-10-06 07:37:50 +02:00
justcool393
dc5a132583
mop visibility, WPD notifications, and a fix with shadowbans
2022-10-05 22:25:45 -07:00
justcool393
68851ed986
profile views and modmail/hole creation notifications
2022-10-05 22:07:38 -07:00
justcool393
5739f128cf
club and chudrama permissions
2022-10-05 21:52:15 -07:00
justcool393
35c294b421
shadowban perms and some more fixes
2022-10-05 19:24:27 -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
4b78ed176a
global moderation perm and add some more checks for const perm
2022-10-05 18:16:52 -07:00
justcool393
04f24cd8fd
content moderation permission level
...
holy crap there's a lot
2022-10-05 17:57:08 -07:00
justcool393
651355afdf
should be no semicolon there
2022-10-05 16:37:16 -07:00
Aevann1
2f979b859b
generate modlogs when a hole janny toggles nsfw
2022-10-06 01:24:54 +02:00
Aevann1
55b08c3c47
remove "grant_awards" mod action
2022-10-06 01:15:26 +02:00
justcool393
4037eed228
use constant instead of literal 200 for poll bets
2022-10-04 23:07:53 -07:00
justcool393
635e35204e
i'm an idiot
2022-10-04 17:08:15 -07:00
justcool393
93fb4f40d6
security: don't leak comment contents for removed/deleted comments
2022-10-04 16:51:42 -07:00
justcool393
31725a0684
security: don't leak post contents to embeds and other stuff for removed/deleted posts
2022-10-04 16:48:01 -07:00
Aevann1
947e362c00
fix 3e58cf64ce
2022-10-05 00:28:48 +02:00
Aevann1
3e58cf64ce
let ppl see the replies if they participated in the thread before it got CC'd
2022-10-04 22:36:16 +02:00
Snakes
247318d67b
Sanitize /casino/<game> parameter input.
2022-10-03 16:40:33 -04:00
Aevann1
dda49fdd70
the @Wieoaka question
2022-10-02 13:22:18 +02:00
Snakes
d28281bf8f
Fix ORM trying to INSERT/UPDATE into body_ts.
2022-10-02 05:12:04 -04:00
Snakes
701f64c91b
Change comment search to use tsvector.
2022-10-02 04:55:39 -04:00
Aevann1
186616728b
allow tempbanned nibbas to mod holes
2022-10-01 19:23:09 +02:00
Aevann1
2a316301e2
fix prev commit (im retarded)
2022-09-29 14:43:14 +02:00
Aevann1
f073e2e167
fix this https://rdrama.org/h/changelog/post/108741/added-hole-mod-logs-marseyjanny2/2809340?context=8#context
2022-09-29 14:41:39 +02:00
Aevann1
51d7cd6d7e
fix shit with hole logs
2022-09-29 12:18:27 +02:00
Aevann1
2f5ae40574
delete legacy modactions
2022-09-29 12:05:14 +02:00
Aevann1
09cc43060d
add hole mod logs ( #380 )
2022-09-29 11:39:37 +02:00
Aevann1
7201d55f69
Revert "prem version"
...
This reverts commit 858715b496
.
2022-09-29 07:58:11 +02:00
Aevann1
858715b496
prem version
2022-09-29 07:53:37 +02:00
Aevann1
b9d3336a9e
nitter shit
2022-09-29 07:53:37 +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
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
Aevann1
4212cfa0b2
testing on pcm
2022-09-25 06:11:06 +02:00
Aevann1
9eeb77073f
fix prev commit
2022-09-25 05:10:32 +02:00
Aevann1
ba19830075
fix last commit
2022-09-25 04:47:05 +02:00
Aevann1
c0c45d9e9a
same as last commit
2022-09-25 04:45:22 +02:00
Aevann1
08f9045818
remove linefeed at the end
2022-09-23 17:02:09 +02:00
Aevann1
5740ed3f00
fix capitalization
2022-09-23 16:56:01 +02:00
Aevann1
340f9e31fe
limit asset perms and generate modlog for updating
2022-09-23 14:51:57 +02:00
Aevann1
d1bc2f3468
integrate check_ban_evade into check_for_alts
2022-09-23 14:33:58 +02:00
Snakes
3efaedbbec
Temporarily fix permas propagating as shadows.
2022-09-22 20:45:59 -04:00
Aevann1
2ef91698f4
allow PCM chadmins to add or remove channels ( #365 )
...
* testing on devrama
* fix for devrama
* fix
* fix
* fix
* fix
* fix
* fix
* test
* fix
* test
* test
* commit
2022-09-22 23:40:32 +02:00
Aevann1
618572e413
reload on declaring winner
2022-09-22 22:24:22 +02:00
Aevann1
d80a2f2331
add "are you sure?" to "declare winner"
2022-09-22 22:11:56 +02:00
Aevann1
6eea792b00
if ur reading this, fuck you
2022-09-22 21:54:42 +02:00