Snakes
8e2f76729e
Amend 4f849c2: remove forgotten print debug.
2022-11-09 10:37:54 -05:00
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