forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

16655 Commits (4052188062f7dff99ba09661c9023bc29a2afd7e)

Author SHA1 Message Date
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 40a34ea26a leaderboards: don't show users if they're in the ranking more than once 2022-11-01 02:49:20 -05:00
justcool393 444b3d36f1 leaderboard: fix bug in table 2022-11-01 02:43:08 -05:00
justcool393 d7c7026792 leaderboards: fix missing </div> that was never present
seriously someone copied and pasted the open div
2022-11-01 02:36:18 -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
SneedBot 0c8b0d531b
sneed 2022-11-01 02:45:46 -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
justcool393 6d636e4e42 use charge_account everywhere 2022-11-01 00:25:19 -05:00
justcool393 905b070437 twentyone: ratelimits: put a once per 2 seconds ratelimit to patch up race conditions 2022-11-01 00:04:55 -05:00
justcool393 769f20852b features: use AWARDS feature for awarding, not badges 2022-10-31 23:53:27 -05:00
justcool393 67b56fb743 users: fix comments page 2022-10-31 23:37:29 -05:00
SneedBot 6aabc98f62 sneed 2022-11-01 04:34:19 +00:00
gooseman dacf022c82 Update main.css 2022-10-31 21:33:52 -07:00
Snakes be2664b284
Revert "set astolfo background to everyone in drama"
This reverts commit be1ff23d4d.
2022-11-01 00:21:32 -04:00
Snakes 6f91e77338
Port sneeds from spooky-22. 2022-11-01 00:17:20 -04:00
Snakes d7aaa33c7f
Formalize unpurchasable hats. 2022-10-31 23:38:10 -04:00
justcool393 bfb13e9fec add a newline because posix users can't sneed 2022-10-31 19:14:24 -05:00
Aevann1 e7e667f56f fix undeflectable awards being vaporized 2022-11-01 02:11:44 +02:00
Aevann1 972578e74a allow poetrysperg to skip the linefeeds thing 2022-11-01 02:04:37 +02:00
Aevann1 f4542db86f fix first comment on a post being centered with huge padding 2022-11-01 01:12:31 +02:00
justcool393 b17ea4fd37 awards: only restrict admins if award feature flag set 2022-10-31 18:11:49 -05:00
Aevann1 5d9ff04ad3 fix last commit 2022-11-01 01:07:42 +02:00
Aevann1 3bfe3be800 fix /create_hole 2022-11-01 01:07:24 +02:00
Aevann1 48775dbb5d disallow jannies from undoing ban awards 2022-11-01 01:05:02 +02:00
Aevann1 ce2d90a212 small refactor to buttons on userpages 2022-11-01 00:43:18 +02:00
Snakes fa43317ee2
Revert "Merge pull request #396 from nekobbbbbbit/debooterstrap"
This reverts commit ae1e6b01a4, reversing
changes made to 7e5c1b0ad8.
2022-10-31 18:35:47 -04:00
Aevann1 e3a8f5eda6 disable "give award" button when number of owned selected awards goes to 0 2022-10-31 23:10:04 +02:00
Aevann1 cda0b3592c make journoid blurb acquisition announcement temporarily 2022-10-31 22:54:56 +02:00
Aevann1 7f82a0c371 add "Official site of /r/SubredditDrama" to the journoid blurbs 2022-10-31 22:53:11 +02:00
Aevann1 a447fb83ae remove carp's "everything legal is welcome' blurp in the sidebar 2022-10-31 22:46:52 +02:00
Aevann1 5544421cfa merge the "Flags" and "Sets" emojis tabs with "Misc" (too many tabs IMO) 2022-10-31 22:41:39 +02:00
Aevann1 6ea05cdb18 add 4 extra meme rules to hopefully act as an extra barrier to retards 2022-10-31 22:35:23 +02:00
Aevann1 7eaf257ca0 add 2 extra boosted domains 2022-10-31 22:33:06 +02:00
Aevann1 cc473795bf make banned domains case insensitive 2022-10-31 16:33:11 +02:00
Aevann1 33d33a6468 fix this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2995576?context=8#context 2022-10-31 16:26:03 +02:00
justcool393 b8542af64c random fix 2022-10-30 20:10:33 -05:00
justcool393 2beef9f725 repost if you if you horse 2022-10-30 20:03:46 -05:00
Aevann1 88e7f30f04 make !SLOTS work too 2022-10-31 02:20:50 +02:00
Aevann1 df559c6af5 run archival through proxy 2022-10-31 02:05:53 +02:00
Aevann1 cdffb764bd remove @jannies 2022-10-31 00:41:26 +02:00
Aevann1 c80e92f434 archive ghostarchive.org automatically 2022-10-31 00:39:37 +02:00
Aevann1 1032a3193f fix bug with deflection 2022-10-30 23:27:53 +02:00
justcool393 4ff2a55ed2 fix prev 2022-10-30 15:36:30 -05:00
justcool393 95f28fdc65 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-30 15:09:19 -05:00
justcool393 d61eda8427 merge i think 2022-10-30 15:08:20 -05:00
Aevann1 3892151eb2 small cosmetic change 2022-10-30 22:07:56 +02:00
Aevann1 024005cc17 small margin change 2022-10-30 21:44:02 +02:00
Aevann1 83b2511380 add a couple of margins to formatting.html 2022-10-30 21:43:35 +02:00
Aevann1 2566e7b831 increase table padding on mobile 2022-10-30 21:42:29 +02: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
Aevann1 aec5f96a7b changes to donation flow 2022-10-30 20:43:06 +02:00
Aevann1 6778ef14ad diversity is our strength 2022-10-30 20:27:36 +02:00
Aevann1 915967ddd0 constantify BAN_EVASION_DOMAIN 2022-10-30 20:01:01 +02:00
Aevann1 8dd9045a33 allow distinguishing other ppl's comments 2022-10-30 17:32:54 +02:00
Aevann1 8b95a02ae4 when u unpin a post that's temporarily pinned, both the unpin and pin buttons are hidden, this fixes that 2022-10-30 17:20:11 +02:00
Aevann1 2ba1a1e86e remove postToast compatability function 2022-10-30 17:10:07 +02:00
Aevann1 13b184ee53 remove unnecssary space 2022-10-30 17:09:32 +02:00
Aevann1 b8f4d36f92 add confirmation dialog to "remove follow" 2022-10-30 17:07:10 +02:00
Aevann1 4e6633baa6 remove <blockquote> from formatting guide (cuz its padding is fucked up) 2022-10-30 16:56:20 +02:00
Aevann1 b9c482712a constantify file extensions 2022-10-30 16:55:43 +02:00
Aevann1 23883c530b constantify TRUESCORE_DONATE_LIMIT 2022-10-30 16:18:42 +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 d1e35e4afe fix prev commit 2022-10-30 02:37:31 -05:00
justcool393 cd60a11180 users: add the previous improvements to comments 2022-10-30 02:36:50 -05:00
justcool393 7f716a6e72 users and search: add status codes 2022-10-30 02:33:42 -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
justcool393 8a3be91c04 users: procoins feature required to be able to transfer mbux 2022-10-30 02:10:21 -05:00
justcool393 27738ef7c9 add type annotations and fix prev commit 2022-10-30 02:07:37 -05:00
justcool393 9bf1ac689c users: fix bug that would steal coins or mbux if they entered a reason that was too long
users: refactor transfer_currency into its own thing
2022-10-30 02:05:02 -05:00
justcool393 b9f2a7123e actions: move pizzashill autovotes to actions 2022-10-30 01:03:23 -05:00
Nekobit 7b22f345f5
Remove temp code 2022-10-30 00:12:48 -04:00
Nekobit 302f35cca0
login: Fix scroll overlay page
Login and scroll page were overflowing. This workaround is a bit funky due to the overflow placement, but it'll do
2022-10-30 00:12:06 -04:00
justcool393 958e083904
don't include signup.js in the login page 2022-10-29 22:47:20 -05:00
justcool393 540cc99e25
add correct flag to sign up 2022-10-29 22:40:35 -05:00
justcool393 64bf0eda1f
add correct flag 2022-10-29 22:40:11 -05:00
justcool393 912dc80ae1
sign up page header 2022-10-29 22:19:30 -05:00
justcool393 417413dc29
fix prev commit
we need to exclude main.css if neko bootstrap mode is enabled
2022-10-29 22:15:54 -05:00
justcool393 85464fbb2e
update login page 2022-10-29 22:13:54 -05:00
justcool393 016e9b66a4
add neko debootstrap flag to html_head.html
this is awful but i made this a macro for some reason i have no idea why
2022-10-29 22:11:05 -05:00
justcool393 74d3c325d4
Merge branch 'frost' into debooterstrap 2022-10-29 20:07:18 -07:00
justcool393 617d237adc
re-add special character check 2022-10-29 21:57:47 -05:00
Aevann1 7e5c1b0ad8 don't redirect PCM and WPD to trans charity in 502.html 2022-10-30 03:04:08 +02:00
Aevann1 684bd24326 move 2 headers from python to nginx 2022-10-30 02:46:50 +02:00
Aevann1 9985e5c6f6 fix discord changelog channel 2022-10-30 02:43:55 +02: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
Aevann1 a18c2e24e9 fix bug in casino slots + change return value 2022-10-30 02:12:32 +02:00
Aevann1 47ac6e12db small grammar change 2022-10-30 01:53:09 +02:00
Aevann1 cb8706ec6b small fix to /live 2022-10-30 01:33:23 +02:00
Aevann1 9335dfd92a small fix to /live 2022-10-30 01:29:24 +02:00
justcool393 5f28a8f4e7 mottey drama is pretty good so yeah 2022-10-29 18:22:29 -05:00
Snakes bf25937b54
Make rDrama sidebar markup semantic. 2022-10-29 19:08:35 -04:00
Aevann1 c4063f081c moved boosted sites to const.py 2022-10-30 00:53:42 +02:00
Aevann1 eb2adf4dc2 add more boosted sites 2022-10-30 00:52:38 +02:00
Aevann1 21aff0976b add more boosted sites 2022-10-30 00:49:53 +02:00
Aevann1 77dc8a990c remove some unnecessary <br>s 2022-10-30 00:42:40 +02:00
Aevann1 3bc248fe07 fix small bug in /live 2022-10-30 00:19:01 +02:00
Aevann1 d7091c4799 force posts by PERMA-chudded users to go to /h/chudrama 2022-10-30 00:17:16 +02:00
Aevann1 ea2bd29a47 fix d9ef62b9c6 2022-10-30 00:16:58 +02:00
Aevann1 f687d0e1ee convert /live code from greek to englsh 2022-10-30 00:10:35 +02:00
justcool393 eca1edeaf6 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-29 16:50:47 -05:00
justcool393 8bbcb9902e HTTP referer: move setting it to nginx from python 2022-10-29 16:50:33 -05:00
Aevann1 227d074da7 remove redundant "noreferrer" 2022-10-29 23:46:35 +02:00
justcool393 ef4fc4dd99 remove redundant noreferrer tags
note: skipping on 502.html file as those are served by nginx
2022-10-29 16:46:22 -05:00
Aevann1 06314f92b1 remove referrer from html tags 2022-10-29 23:42:30 +02:00
Aevann1 3bd8384c05 fix stray space 2022-10-29 23:37:01 +02:00
Aevann1 d9ef62b9c6 prevent ppl from wasting their chud awards 2022-10-29 23:34:40 +02:00
justcool393 3ac5fad2d8 referer: only send for same-origin requests 2022-10-29 16:33:17 -05:00
justcool393 940c475277 remove z index attributes that were causing things to fail (only on spooky?) 2022-10-29 16:31:51 -05:00
Aevann1 5b9a833926 fix fingerprinting 2022-10-29 23:28:33 +02:00
Aevann1 907a0cc0d1 don't send referrer to twitter 2022-10-29 23:24:17 +02:00
Aevann1 9d31b8daa4 remove 2 spaces from lite-youtube.js 2022-10-29 23:24:11 +02:00
Aevann1 6451572139 remove refererrs from profile images 2022-10-29 23:16:43 +02:00
Aevann1 be1ff23d4d set astolfo background to everyone in drama 2022-10-29 22:23:16 +02:00
Aevann1 5230e8e7f8 remove code that excluded me from deflector effect 2022-10-29 22:19:50 +02:00
Nekobit 7e1681e34e
Bump, Responsive login page, use new stylesheet helpers 2022-10-29 14:30:20 -04:00
Aevann1 89b0807b2d don't send referrer to youtube 2022-10-29 20:23:48 +02:00
Aevann1 1b56fc22bb hide reply buttons on deleted comments and posts for consistency 2022-10-29 19:24:22 +02:00
Aevann1 5201b1bc5a boost unusual drama sources 2022-10-29 19:20:59 +02:00
Aevann1 e794eb93a7 reduce chud award price from 2500 to 500 2022-10-29 19:12:39 +02:00
justcool393 26b469c361 fix minor typographical error 2022-10-29 01:11:05 -05:00
justcool393 e6ce4edbd8 templates: remove redundant badge_remove template
templates: fix badge admin template when removing a badge
2022-10-29 01:08:29 -05: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 4ded76741d move get_saves_and_subscribes to their own thing 2022-10-28 22:04:09 -05:00
Aevann1 f0c8af3ec7 remove all chained non-breaking spaces 2022-10-29 04:27:09 +02:00
Aevann1 eb1af8a69f remove some chained non-breaking spaces 2022-10-29 04:21:06 +02:00
Aevann1 0339016567 fix /live 2022-10-29 04:20:23 +02:00
Aevann1 8517b85a49 replace "<BR>" with "<br>" 2022-10-29 04:07:43 +02:00
justcool393 6c6a578439 stickies: use permission constant on submission.html 2022-10-28 20:54:39 -05:00
justcool393 61cc1ddcb7 inline is_image 2022-10-28 20:52:19 -05:00
Aevann1 6b0fe97a85 remove using invisible character as spacing 2022-10-29 03:31:25 +02:00
Aevann1 7915d9f0aa fix bugs resulting from fdd608532b 2022-10-29 03:26:46 +02:00
justcool393 1ee7ec323a get lo user: fix 401 loop by clearing session on bad nonce 2022-10-28 20:07:39 -05:00
Aevann1 d1f01d2dd7 remove some spacing insanity in login/signup pages 2022-10-29 03:01:59 +02:00
Aevann1 aec78a3b05 get rid of all header classes 2022-10-29 02:55:49 +02:00
Aevann1 efc390e0c0 get rid of some header classes 2022-10-29 02:52:11 +02:00
Aevann1 de8be8dd0e get rid of <pre> being used as vertical spacing 2022-10-29 02:47:48 +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 edbbc5b672 convert the last remaining 2 <a> tags without href 2022-10-29 02:00:27 +02:00
Aevann1 5719688178 use tabs, not spaces 2022-10-29 01:39:31 +02:00
Aevann1 fdd608532b add type="button" to all <button> tags 2022-10-29 01:35:14 +02:00
Aevann1 5eb2eb5035 remove role="button" from all <a> tags 2022-10-29 01:32:31 +02:00
Aevann1 2019f68217 same as last commit 2022-10-29 01:31:39 +02:00
Aevann1 11ad9a4a0a remove role="button" from button tags 2022-10-29 01:28:17 +02:00
Aevann1 582a29232b convert all <a> tags without a href, except 2 in award_modal.html 2022-10-29 01:27:38 +02:00
Aevann1 a33680dc22 convert more <a> tags to <button> tags 2022-10-29 01:09:06 +02:00
Aevann1 6c32916f1a convert more <a> tags to <button> tags 2022-10-29 00:51:10 +02:00
Aevann1 b66f9fdb0a convert 1 a tag to a button, and change native button css 2022-10-29 00:30:28 +02:00
Aevann1 86beaad37c remove unused shit in profile template 2022-10-29 00:26:06 +02:00
Aevann1 649fc2414d disable adding admins on WPD 2022-10-29 00:14:59 +02:00
Aevann1 58912b124a display "@" before account name in failed login attempt 2022-10-28 22:25:35 +02:00
Aevann1 067a83b1b1 remove 2 weird role="button" 2022-10-28 22:19:05 +02:00
Aevann1 f41b09cc07 small change to /admin/app 2022-10-28 22:13:58 +02:00
Aevann1 062e2523b5 change some <a> tags to <button> 2022-10-28 22:08:37 +02:00
justcool393 f5b40ebbbc leaderboard: qol: link to relevant user pages for posts and comments 2022-10-28 12:36:18 -07:00
justcool393 b9b084ca1e fix more templating errors 2022-10-28 12:36:18 -07:00
justcool393 efd63b8666 leaderboards: show user as last row if not in lb 2022-10-28 12:36:18 -07:00
justcool393 3aac8f1f24 leaderboard: fix some templating bugs i introduced 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 d6f1f3c070 fix prev commit redux 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
justcool393 0258bfb356 i've done it... i've really done it 🥲
i've made the leaderboard code less crap all around
to those who wrote this old code
i forgive you
2022-10-28 12:36:18 -07:00
justcool393 09c3ac2b65 jinja2 doesn't has getattr but we can subscript apparently
weird but ok
2022-10-28 12:36:18 -07:00
justcool393 ad58490dd0 call the leaderboard, not LEADERBOARDS and also do it correctly 2022-10-28 12:36:18 -07:00
justcool393 db587a2501 i forgot a bloody comma ok 2022-10-28 12:36:18 -07:00
justcool393 0b61a83270 this leaderboard code is affecting my mental sanity
idk maybe this'll fix it it's 1 am who knows anything about coding anymore
2022-10-28 12:36:18 -07:00
justcool393 67768bf44d fix prev commit 2022-10-28 12:36:18 -07:00
justcool393 b2cfabf244 i don't think the person who worked on either this template or the leaderboard python function has ever thought about the idea of code reuse
(make this template smaller by 3/4ths)
2022-10-28 12:36:18 -07:00
justcool393 76855fed36 fix prev commit redux 2022-10-28 12:36:18 -07:00
justcool393 5ec48141bb fix prev commit 2022-10-28 12:36:18 -07:00
justcool393 ff639ce94b i wish the person who wrote the initial version of this leaderboard code a very lovely day
i definitely don't want to cry myself to sleep because of this god awful mess
it's a little bit better now though
<3
2022-10-28 12:36:18 -07:00
Aevann1 aadd054bc3 remove role="button" from button HTML tags 2022-10-28 21:30:08 +02:00
Aevann1 4a43bc239d remove formatting buttons (useless bloat) 2022-10-28 21:09:56 +02:00
Aevann1 fc6be1d959 per janny poll, make cosmetic awards 150 DC 2022-10-28 21:04:29 +02:00
Aevann1 449c8b51cb Revert "add another ratelimit by username"
This reverts commit 4385bafa85.
2022-10-28 20:25:14 +02:00
Aevann1 4385bafa85 add another ratelimit by username 2022-10-28 20:22:51 +02:00
Aevann1 e1dc790165 tighten from 15/day to 10/day 2022-10-28 20:13:37 +02:00
Aevann1 e41ee21f2b remove redundant ratelimits in /login 2022-10-28 20:13:23 +02:00
Aevann1 b816973f38 ignore subdomains in banned_domains logic 2022-10-28 20:12:40 +02:00
Snakes 1f27b0fb2f
Rate limit failed logins. 2022-10-28 14:07:24 -04:00
Aevann1 6271588056 small cosmetic change 2022-10-28 19:59:56 +02:00
Aevann1 180163e05e remove bad slur filter 2022-10-28 19:35:37 +02:00
Aevann1 94d1a7d98d fix 2022-10-28 19:13:24 +02:00
SneedBot fbab681b43 sneed 2022-10-28 17:09:07 +00:00
Aevann1 8999a6ea29 fix 2022-10-28 19:08:52 +02:00
justcool393 68451513b0 get: use a single function to sanitize usernames 2022-10-27 21:39:57 -05:00
justcool393 ea46bafce2 get: List -> Iterable, we accept lists, sets, etc 2022-10-27 19:30:53 -07:00
justcool393 8a8e6f2233 get: functions to add blocks and vote properties
get: don't attempt to re-query if blocks or voted properties are already present
2022-10-27 19:30:53 -07:00
justcool393 16ba59d8b3 get: check stripped out names before querying the db and return None if graceful in other places 2022-10-27 19:30:53 -07:00
justcool393 5ff6fea4dc get: add type annotations everywhere 2022-10-27 19:30:53 -07:00
justcool393 308e9cbbd6 get: remove weird vestigal load_parent part of get_comment 2022-10-27 19:30:53 -07:00
Aevann1 5d9ddcc0f4 fix quoting on selection 2022-10-28 01:19:44 +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
Snakes be7be28182
Fix comment search query ampersand bug. 2022-10-27 18:24:12 -04: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 2937872035 minor grammar change 2022-10-27 17:43:48 +02:00
Aevann1 98bae12134 show the time on which ppl blocked/followed the hole 2022-10-27 17:38:54 +02:00
Aevann1 8e84e3893e same as last commit 2022-10-27 17:38:39 +02:00
Aevann1 28cf9b66f9 minor grammer change + delete unused template 2022-10-27 17:37:40 +02:00
Aevann1 35ea423f35 cosmetic change 2022-10-27 10:38:11 +02:00
justcool393 c6d3f2a582 antispam: make bypass ids a set 2022-10-26 22:28:21 -05:00
Snakes d626ae7f6b
Add login required signup blurb for rDrama. 2022-10-26 20:10:21 -04:00
justcool393 50482c9b0e T to t 2022-10-26 18:41:29 -05:00
justcool393 e4d50be763 stickies: fix logic error i reintroduced that @Aevann1 has earlier fixed 2022-10-26 18:32:30 -05:00
Snakes 6a021c4736
PCM /live: scraping scheduled streams revision. 2022-10-26 17:03:21 -04:00
Snakes 895f0c9714
PCM /live: improve scraping robustness. 2022-10-26 16:14:16 -04:00
justcool393 e6f735b8ca security: be slightly more generous with login ratelimits 2022-10-26 14:18:21 -05:00
justcool393 782a4494da login: create invalid file if doesn't exist 2022-10-26 14:11:30 -05:00
justcool393 03cf8038f3 security: log invalid password attempts for admins
security: reduce login ratelimits from 1/second ->1/10 seconds
security: reduce login ratelimits from 200/hr -> 100/hr
security: reduce login ratelimits from 1000/day -> 500/day
2022-10-26 13:31:17 -05:00
justcool393 31eb387c8d pins: remove unnecessary code 2022-10-26 12:23:26 -05:00
Aevann1 8795ecfb58 fix thumbnails 2022-10-26 16:34:33 +02:00
Aevann1 b9d7b4e027 sneed 2022-10-26 16:33:50 +02:00
Snakes f42d861cae
Add entry to journoid banner. 2022-10-26 01:33:58 -04:00
Snakes 9bfb121d2f
WPD: update sidebar rule #1. 2022-10-26 00:35:20 -04:00
justcool393 548f2613c7 pinprovements 2022-10-25 17:48:10 -05:00
Aevann1 a25169cbea remove makeQuote() from reply buttons 2022-10-25 23:16:34 +02:00
Aevann1 e4c7a588ca add hat preview in /submit/hats 2022-10-25 23:12:52 +02:00
Aevann1 eba9666dd6 add ml-5 mr-5 mx-5 2022-10-25 23:12:37 +02:00
Aevann1 e182ddc738 fix orientation (thx sneks my love) 2022-10-25 22:19:16 +02:00
justcool393 f9343d3db1 full_name -> fullname 2022-10-25 15:05:37 -05:00
Aevann1 033738342a add tooltip to jigsaw tier [WPD] 2022-10-25 22:03:07 +02:00
Aevann1 16c7c07e7d stop changing extension 2022-10-25 22:01:38 +02:00
Aevann1 100f546f67 strip metadata 2022-10-25 21:58:02 +02:00
justcool393 56c1b64ec2 via @Aevann1: add selection quoting feature to mobile 2022-10-25 14:57:43 -05:00
Aevann1 3eb364b143 restore -coalesce 2022-10-25 21:00:09 +02:00
Aevann1 75ee126b61 specify method in imagemagick 2022-10-25 20:48:45 +02:00
Aevann1 0119c2b424 specify quality in imagemagick 2022-10-25 20:45:32 +02:00
Aevann1 883ab31cc9 Describe what Poor Mode does 2022-10-25 20:20:43 +02:00
Aevann1 b92aaa972e remove 'aev' mentions 2022-10-25 18:20:26 +02:00
Aevann1 fbeac461ca refactor poorcel mode 2022-10-25 18:07:44 +02:00
justcool393 ac43522570 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-25 11:05:42 -05:00
justcool393 ff81af326e fix issue where unable to self remove posts 2022-10-25 11:05:34 -05:00
Aevann1 be83829911 trim all marseys that arent alphabet or animated 2022-10-25 18:00:50 +02:00
Aevann1 aa282cf622 remove 2 broken marseys 2022-10-25 17:49:09 +02:00
Aevann1 b9d998bdbe use imagemagick in all cases 2022-10-25 17:41:23 +02:00
Aevann1 3b16c8f3e3 close image files after ur done 2022-10-25 17:41:23 +02:00
Snakes eafa7b8e05
Revert "this is stupid": no fighting in the commit log.
This reverts commit 1f1ace3d66.
2022-10-25 11:32:32 -04:00
justcool393 1f1ace3d66
this is stupid 2022-10-25 08:21:37 -07:00
Aevann1 887bb64483 remove forgotten console.log(e) 2022-10-25 15:58:38 +02:00
Aevann1 69648de587 minor change to /remove_post 2022-10-25 15:45:44 +02:00
Aevann1 8e257d2376 fix removing posts 2022-10-25 15:41:49 +02:00
Aevann1 a390f3d917 refactor my prev commit 2022-10-25 00:36:54 +02:00
justcool393 d8070625d8 split hosts by comma 2022-10-24 15:28:43 -07: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 ae3831efb5 another small js fix 2022-10-25 00:02:44 +02:00
Aevann1 9dd9329c32 small js fix 2022-10-25 00:00:19 +02:00
Aevann1 b2317a4563 pause background music when a video or audio is played 2022-10-24 23:16:41 +02:00
justcool393 67a6676bf8 env: don't crash the server if TELEGRAM_LINK isn't present 2022-10-24 15:58:23 -05:00
Aevann1 03cd4246ff switch the position of "reply" and "mute" 2022-10-24 22:39:48 +02:00
Aevann1 2d0879ec3e allow admins to unmute users from modmail 2022-10-24 22:38:54 +02:00
Aevann1 10ba986957 update 2 capys 2022-10-24 22:33:54 +02:00
Aevann1 2a05363a2d exclude me from discord filter 2022-10-24 21:22:08 +02:00
justcool393 0d7437ca1c i am a pro carp hero 2022-10-24 12:43:14 -05:00
justcool393 df7690fb54 fishsticks (prev commit redux) 2022-10-24 12:42:02 -05:00
Aevann1 4b37bd721b prevent carp from undoing award pins 2022-10-24 19:36:35 +02:00
justcool393 0f8ecd48dc antispam: add antispam bypass 2022-10-24 12:27:25 -05:00
Aevann1 baba11676a convert all webp to be actually webp 2022-10-24 19:16:51 +02:00
Aevann1 745f0200dd fix marseycapymerchant 2022-10-24 19:16:40 +02:00
Snakes 97eb823ed0 Fix janny pinning. 2022-10-23 19:47:53 -04: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
justcool393 dbb7296dd7 stickies: allow JL2 to sticky post
stickies: unpin on removal
stickies: don't allow removed posts to be stickied
2022-10-23 17:17:49 -05:00
Snakes 7e4b35bc78
Disable Homoween awards on frost. 2022-10-23 17:53:12 -04:00
Aevann1 0b851d237c remove exploit allowing jannies to unpin award pins 2022-10-23 23:52:11 +02:00
Snakes 1496f43ba6
Port Homoween 2022 awards into frost const. 2022-10-23 17:49:12 -04:00
Aevann1 8e68f60e3d fix roundabout way of jannies getting pin awards undone (not exploited so far AFAIK) 2022-10-23 23:36:38 +02:00
justcool393 8f6950a49b fix prev commit 2022-10-23 14:44:02 -05:00
justcool393 050917515d hats: fix hat ratelimit 2022-10-23 14:43:32 -05:00
justcool393 f2ad34496b Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-23 13:29:04 -05:00
justcool393 e248295880 lawlzposts: fix a couple of bugs 2022-10-23 13:28:51 -05:00
Aevann1 b563b7af30 stop using "d-none d-md-block" 2022-10-23 19:57:38 +02:00
justcool393 0a9e7b3ef4 lawlzposts: don't allow unpin awards
lawlzposts: disable if pins feature flag is off
2022-10-23 12:14:27 -05:00
justcool393 bd0f56fd22 lawlzposts: restrict to rDrama 2022-10-23 12:02:55 -05:00
justcool393 ec1affcf85 posts: add MasterLawlz specific actions 2022-10-23 12:01:00 -05:00
Aevann1 80eedbd58d more approval/removal refactors 2022-10-23 18:24:23 +02:00
Aevann1 5d846e64c7 same as last commit 2022-10-23 18:24:22 +02:00
Aevann1 25e50be552 same as last commit 2022-10-23 18:24:22 +02:00
Aevann1 eafbebbdf1 same as last commit 2022-10-23 18:24:22 +02:00
Aevann1 e99aa6fd0e same as last commit 2022-10-23 18:24:22 +02:00
Aevann1 a040b6779b same as last commit 2022-10-23 18:24:21 +02:00
Snakes ab194a6ad2
Add more shit emoji. 2022-10-23 12:14:24 -04:00
Aevann1 9b47ad166b small refactor to approving psots and comments 2022-10-23 17:51:49 +02:00
justcool393 ff84f32e45 make stats charts tight 2022-10-23 10:46:03 -05:00
Aevann1 096828dc1c add some padding to admin tools 2022-10-23 17:24:41 +02:00
justcool393 c8324f87ff Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-23 10:07:14 -05:00
justcool393 09e5bb6b03 ping me with jc and off site mention update 2022-10-23 10:06:59 -05:00
Aevann1 14b0d77f7a reduce normal cosmetic awards from 500 back to 300 2022-10-23 16:41:57 +02:00
Aevann1 834f70fd2d only check duplicates for banners, sidebar images, and badges 2022-10-23 11:27:40 +02:00
Aevann1 77e5da55ef fix behavior that would replace marsey tags with "none" if we didn't specify them on update 2022-10-23 11:27:20 +02:00
Aevann1 c8f24eab1b fix videos 2022-10-23 10:57:13 +02:00
Aevann1 0f4462ca5b increase pin limit to 4 on WPD 2022-10-23 10:48:24 +02:00
justcool393 a2c16534a4 admin pings: truescore requirement and exclude shadowban and make a permission 2022-10-22 19:45:15 -05:00
justcool393 cc3fb59ccd html head: fix default theme 2022-10-22 19:11:07 -05:00
Aevann1 c4103cfaf4 add @jannies to notify all jannies 2022-10-23 01:50:56 +02:00
Aevann1 27c1970575 add a "!" in PCM welcome message 2022-10-23 01:02:31 +02:00
Aevann1 b83f9bcfb1 fix prev commit 2022-10-23 00:12:46 +02:00
Aevann1 78e1bf9784 clear message field after submitting it 2022-10-23 00:10:36 +02:00
Aevann1 c2bb3303e1 fix prev commit 2022-10-22 23:13:37 +02:00
Aevann1 fb6825ab58 add the redbubble megathread to the index 2022-10-22 23:12:23 +02:00
justcool393 a5799b222e hats: fix 2 500s (SQL errors) 2022-10-22 15:37:22 -05:00
justcool393 60dd29bc6b Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-10-22 12:26:52 -05:00
justcool393 db95ff7f43 head: temporarily use userpage's head tags instead of overwriting our own 2022-10-22 12:25:44 -05:00
Aevann1 888e552283 fix this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2937807?context=8#context 2022-10-22 18:40:52 +02:00
Aevann1 1b00b172e4 reduce frames on 3 hats 2022-10-22 18:32:19 +02:00
Aevann1 07228a2708 fix cookies on localhost 2022-10-22 17:26:39 +02:00
Aevann1 2dcf6bcb0f make sure all images with resize parameter are under 500KB 2022-10-22 17:24:07 +02:00
justcool393 49b12f220c sessions: set cookie domain properly 2022-10-21 23:39:23 -05:00
justcool393 62e9ef7009 hats: massively raise ratelimit 2022-10-21 22:31:58 -05:00
Aevann1 411a92f8f4 sneed 2022-10-21 23:58:32 +00:00
Snakes 333c36f6b7
Update homoween badges, cachebust badges. 2022-10-21 19:57:59 -04:00
Snakes e9b648dcb5
Support for multiple WPD sites on one master. 2022-10-21 19:33:43 -04:00
Snakes 45ff9d80e5
Permit serving multiple hosts from one instance.
In service of tidying up WPD application servers. Also includes a
closely related change of letting nginx do the redirects to root.
2022-10-21 19:12:36 -04:00
justcool393 a96bf4f81e favicon: add back to all pages properly 2022-10-21 17:46:17 -05:00
justcool393 b6ad3555b2 chat: add favicon to HTML 2022-10-21 17:42:28 -05:00
justcool393 2792a06c21 CSP: content security policies are safe 2022-10-21 17:31:31 -05:00
justcool393 0495d00629 chat fix i think? 2022-10-21 17:24:17 -05:00
justcool393 347a751481 WPD: redirect unlogged users to new site 2022-10-21 16:10:06 -05:00
Aevann1 570f72563f sneed 2022-10-21 19:01:16 +00:00
justcool393 2e087dc09f set session cookie domain to SITE 2022-10-21 14:00:41 -05:00
justcool393 c4b2c6f3f5
html head refactor (#412)
* start html head refactor
this is a bit of a doozy tbh and will probably take a while. the templates are very highly duplicated but not duplicated enough to be an easy little thing

oh well, so it goes.

* some easier html head ones

* add chat, html_head, sign_up_failed_ref, sign_up, submit

* CSP: put it in const.py instead of this weird thing we did before

* fix syntax error

* better call the actual macros

* fix prev commit

* import into settings2

* fix prev commit

* set CSP properly if localhost

* some title fixes i think

* login page

* fix prev commit

* hacky thing to get titles to work i think

* {{stylesheets()}}

* fix prev commit

* title stuff

* cries uncontrollably

* submission fixes i think

* fix prev commit i think

* submission fixes ekfjdhfkdjf

* submission fixes 4

* this may fix submissions idk tbh

* default template: make it a little better on post pages

* default template: some efficiency
2022-10-21 13:39:45 -05:00
Aevann1 360aa99fe1 small adjustments 2022-10-21 17:11:12 +02:00
Aevann1 5ba33396d5 add tags 2022-10-21 16:51:39 +02:00
Aevann1 04aa88f71f fix jigsaw WPD tier 2022-10-21 16:44:31 +02:00
Aevann1 26e2143514 marsey.world 2022-10-21 16:32:23 +02:00
Aevann1 824cc1ba81 sneed 2022-10-21 12:00:05 +00:00
Aevann1 2a2141a41f sneed 2022-10-21 11:32:29 +00:00
Aevann1 81a929c2e1 on harpooner's request, allow hole jannies to exile JL3 2022-10-21 13:32:21 +02:00
Aevann1 7733449169 fix 500 error 2022-10-21 13:30:32 +02:00
Aevann1 05e8dec716 allow multiple hosts (thanks JC I love you) 2022-10-21 13:15:29 +02:00
justcool393 37af363a47 remove duplicate message 2022-10-20 19:31:03 -05:00
justcool393 790a569072 don't check if body is empty 2022-10-20 19:29:20 -05:00
justcool393 8fe73cb68e refactor blackjack a bit 2022-10-20 19:28:05 -05:00
justcool393 c0fe4d03c0 message: sanitize replies too 2022-10-20 18:24:03 -05:00
justcool393 52b8a22917 messages: use sanitize_raw_body 2022-10-20 18:18:47 -05:00
justcool393 578e1896fd sanitize: strip out html comments
they're unnecessary and never get rendered
2022-10-20 18:06:55 -05:00
justcool393 360cff7e8f add post bypass checking perm 2022-10-20 17:51:29 -05:00