forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

17030 Commits (35f6b39d271b0e6a44801b9aa594017324107f70)

Author SHA1 Message Date
Aevann1 2df059f7c5 fix overflow on pin symbol 2022-11-19 14:42:23 +02:00
Snakes 38ac92b4aa
search: escape apostrophes. 2022-11-18 16:55:15 -05:00
Aevann1 7fe499ce41 remove unnecessary script attribute 2022-11-18 23:38:13 +02:00
Aevann1 599729f54a use postToast in delete_post_modal 2022-11-18 23:35:38 +02:00
Aevann1 82579cdb71 use postToast in report_comment_modal 2022-11-18 23:32:48 +02:00
Aevann1 0e10dd6b32 use postToast in delete_comment_modal 2022-11-18 23:27:53 +02:00
Aevann1 2fd63d7474 I hate you and I hope you die a violent death 2022-11-18 23:11:03 +02:00
Aevann1 3cd1734390 stop spamming the console 2022-11-18 23:08:12 +02:00
Aevann1 4d2a2937e9 fix this https://rdrama.life/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3072105?context=8#context 2022-11-18 22:53:54 +02:00
justcool393 aaa6d6696e lowercase it too 2022-11-18 14:39:52 -06:00
Aevann1 da49ac14b0 I will 2022-11-18 22:39:36 +02:00
Aevann1 6c6ea21fd8 im genuinely gonna kill some people, this is not a threat, this is a promise 2022-11-18 22:37:33 +02:00
justcool393 fc5d78a4a1 don't do it for the POST either 2022-11-18 14:34:23 -06:00
Snakes 2c81db79ef
Fix API for /comment/<cid>, /search/comments. 2022-11-18 15:33:07 -05:00
justcool393 6f1b9014b4 fix 400: improve 4e57369e68
a couple of other places shouldn't redirect either
2022-11-18 14:32:00 -06:00
Aevann1 4e57369e68 dont actually redirect to /reset_2fa 2022-11-18 22:16:28 +02:00
Aevann1 fe154554c6 make sure all /login and /signup link have redirect 2022-11-18 22:13:06 +02:00
Aevann1 785fb28bb2 fix bug when 2fa toggle looked like it didnt apply 2022-11-18 22:07:07 +02:00
Aevann1 bcfe98c295 remove hole pins when post moved 2022-11-18 21:58:12 +02:00
Aevann1 9c5091fd71 fix marseylong and marseyllama 2022-11-18 21:54:41 +02:00
Snakes b808cf2917
html_head: fix SITE_NAME titles, improve settings2. 2022-11-18 14:44:05 -05:00
Aevann1 d73ffaa2eb use a window event listener instead of a loop 2022-11-18 21:41:03 +02:00
Aevann1 ee82ab2072 theres only 1 nav element, why a loop? 2022-11-18 21:40:46 +02:00
Aevann1 78deb9d6f0 make an event listener be on window instead of an element 2022-11-18 21:34:56 +02:00
Aevann1 b4448ae926 remove unnecessary arrow functions 2022-11-18 21:34:38 +02:00
Aevann1 446ef58c2c sneed 2022-11-18 21:20:17 +02:00
Aevann1 ce24c24e1d put js files not made by us in a folder 2022-11-18 21:16:44 +02:00
Snakes 2075311901
html_head: fix page title on signup, login, others. 2022-11-18 14:10:48 -05:00
Snakes ce84861a44
admin_home: add git HEAD to server status. 2022-11-18 14:05:47 -05:00
SneedBot 3e8712cd1d sneed 2022-11-18 18:39:58 +00:00
Aevann1 bd3b0047b8 remove unnecessary <span> 2022-11-18 08:56:33 -08:00
Aevann1 b7cf10d7f6 increase container bottom padding from 50px to 100px 2022-11-18 08:37:47 -08:00
justcool393 2218cb55f1 mbux printer: unify with API requirement 2022-11-18 09:31:59 -06:00
justcool393 b60febf6e0 awards: award printing cleanup 2022-11-18 09:30:17 -06:00
Aevann1 4ec307a209 fix random ":" 2022-11-18 07:25:58 -08:00
Aevann1 f6fd64af08 css change 2022-11-18 07:19:51 -08:00
justcool393 255d5b2453 security: fix mute bypass
modmail: constantify user ID
2022-11-17 16:50:06 -06:00
justcool393 12881388d6 notifications: ignore notifications 2022-11-17 16:35:08 -06:00
justcool393 2c27b75b7a remove unnecessary imports 2022-11-17 15:44:29 -06:00
justcool393 49e2e73b9a fix 500 with subs 2022-11-17 15:25:10 -06:00
justcool393 2bfb2c04a4 fix error in error handler 2022-11-17 15:20:36 -06:00
Snakes 0597347c76
html_head: fix syntax error. 2022-11-17 16:18:43 -05:00
geese-suck 47658f2897
clean up html head (#461)
* init (not done)

* asdf

* :marseymop:

* unnecesary

* remove

* Update html_head.html
2022-11-17 16:08:39 -05:00
SneedBot 4c68647373 sneed 2022-11-17 21:02:40 +00:00
justcool393 83963470e8
user can_view functions (#460)
* user: move can_see_to user class

* stub out can_see in comments and posts

* make can_see a classmethod so it's usable for loggedoutfriends

* test

* kill me now

* threelargeclassesmating

* dfdfdfdfdfdfd

* sdsdsdsd

* classmethod should be above i think

* Revert "classmethod should be above i think"

This reverts commit df1772eb9e7e71bf7b89123f6277b648de2b1af3.

* Revert "Revert "classmethod should be above i think""

This reverts commit 32883406c2e2916fc6c436611376a1817c16cb84.

* test rewritnig thing

* go home python

* what the fuck python

* fix AttributeError

* sdsdsdsdsdsd

* lazy and user and stuff

* test

* Revert "test"

This reverts commit 45af5bb3d45f3ec17126ab117d494ec978062a38.

* merge

* newline

* test

* test 2

* Revert "test"

This reverts commit 196dae677e2ee8cd29261c93dcb747087cb399b6.

* revert test

* fix merge error

* fix import error ciruclation i think

* sdsd

* add type annotations back

* deleted_utc

* isinstance

* user_can_see in jinja and remove unnecessary things

* a bunch of stuff
remove can_see from comment and post
expand can_see to messages

* antiannoyingamountsofwhitespace

* fix for chudrama

* improve prev
2022-11-17 16:02:08 -05:00
justcool393 d80fa23409 kofi: decide whether to load in __init__
this unifies some of the logic with how we load classes
2022-11-17 14:00:19 -06:00
justcool393 5b03c2535a kofi: fix rare 500. don't attempt to activate via kofi on sites where it's not enabled
this can cause a weird 500
2022-11-17 13:55:07 -06:00
justcool393 8414cec5d5 kofi: don't let "blahblahblah" be considered a valid token 2022-11-17 11:12:32 -06:00
justcool393 caf3a81748 remove unnecessary fstrings
(or actually use the feature)
2022-11-17 10:01:03 -06:00
gooseman fa9290a794 Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-11-16 23:19:17 -08:00
gooseman a345f7c128 restore non-nuked banners 2022-11-16 23:19:14 -08:00
SneedBot c6144afc9b sneed 2022-11-17 02:10:28 +00:00
justcool393 be58d2f849 emojis: add opperblink 2022-11-16 13:36:02 -06:00
Aevann1 62ef32c9c5
Update votes.py 2022-11-16 21:00:18 +02:00
Snakes 0c0cad0723 banners: use a class, only style correct elements.
Selecting on the alt attribute is unstable and creates a non-obvious
coupling to maintain. Also it inadvertently affected the shop banners
and some elements in settings.
2022-11-16 12:07:23 -05:00
Snakes 7feddc42f0 Unify template helpers and macros, fix header.
The need for sidebars to have access to macros.random_image means
all templates that include header.html (most templates) need to have
access to `macros`, because header.html includes sidebar_{SITE_NAME}.

Because of how sparse helpers was, we instead unify the two and
replace it since I know we had helpers in every top-level template.
2022-11-16 12:07:23 -05:00
Snakes d7d8220a3f Ensure PCM BANNER_THREAD works. 2022-11-16 12:07:23 -05:00
gooseman 2b4634f857 fix link opening lol 2022-11-16 12:07:23 -05:00
gooseman 16e23e6f54 make banners not retarded + increase future scalability 2022-11-16 12:07:20 -05:00
justcool393 eba6625b81 casino: procoins -> mbux 2022-11-16 10:14:46 -06:00
justcool393 86459cdf24 chat: show mop tools to those with proper perms 2022-11-16 08:38:20 -06:00
justcool393 d1197bac82 chat: sanitize raw body 2022-11-16 08:00:04 -06:00
justcool393 f1bfb87243 chat: permission for mute bypass 2022-11-16 07:00:03 -06:00
justcool393 5b313dd13d hats: only load routes if feature flag enabled 2022-11-16 06:52:16 -06:00
justcool393 ee8df1e3f1 chat: mops are unmutable 2022-11-16 06:38:24 -06:00
Aevann1 b8ceccd78f fix weird tabs 2022-11-16 12:52:11 +02:00
Aevann1 07a76e0ffd exclude me from offsitementions 2022-11-16 10:34:48 +02:00
SneedBot 93fdc3212e sneed 2022-11-16 06:20:48 +00:00
justcool393 1559de125c add error handler 2022-11-15 23:36:56 -06:00
justcool393 1565d9ca26 use abort(410) instead of the old message.html template 2022-11-15 23:32:57 -06:00
SneedBot 219029f8a3 sneed 2022-11-16 00:29:13 +00:00
Snakes a9eb7bcd57
Fix submission repost link escaping. 2022-11-15 19:28:21 -05:00
justcool393 57b4d586ad don't explicitly set cookies for localhost 2022-11-15 16:22:50 -06:00
justcool393 e1634d0940 modals: move all modals to a modals dir 2022-11-15 17:15:53 -05:00
justcool393 5dedde4691 admin: move admin pages to admin dir 2022-11-15 17:15:53 -05:00
justcool393 ee8ad10fac fix 500 on IntegrityError 2022-11-15 15:12:36 -06:00
justcool393 519a9f91f8 signup: don't accidentally leak *what* validation error it was 2022-11-15 12:59:38 -06:00
justcool393 711518d942 don't redirect to /signup page if registrations are closed 2022-11-15 12:56:57 -06:00
justcool393 01e18dc28b remove unnecessary checks
* in post_reset even if get_account could return a None, it'd 500 anyway
* lmao even in get reset (why is this done twice anyway?)
2022-11-15 11:11:22 -06:00
justcool393 b2f5cf92d0 change msg to be more clear 2022-11-15 10:56:40 -06:00
justcool393 b95ee0864e fix 2fa bug 2022-11-15 10:56:04 -06:00
justcool393 3d7737387c use default config vlaue const everywhere 2022-11-15 10:55:00 -06:00
justcool393 adf22b494a
sub relationship class (#456)
* sub relationships

* abstract = True

* fix

* fix spelling mistake
2022-11-15 11:05:42 -05:00
Aevann1 532ebd3ac8 standardize g.db behavior 2022-11-15 17:39:00 +02:00
Aevann1 f1288ba991 fix https://rdrama.life/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3080531?context=8#context 2022-11-15 17:29:45 +02:00
justcool393 3df53c63c9 alts: don't count deleted alts 2022-11-15 09:21:12 -06:00
Aevann1 7ace77b2a7 minor css change 2022-11-15 17:17:58 +02:00
Aevann1 b130139f3d sneed 2022-11-15 16:55:21 +02:00
Aevann1 4dbc4096d3 remove weird variable 2022-11-15 16:45:18 +02:00
Aevann1 aeb10e1ec6 exclude /r/SubSimGPT2Interactive 2022-11-15 16:44:08 +02:00
Aevann1 6d607a6f59 give ppl a message when they change their settings sucessfully 2022-11-15 16:33:21 +02:00
Aevann1 8c849bef65 add 2 more boosted sites 2022-11-15 16:33:20 +02:00
justcool393 9b734a8e3a fix ghost 2022-11-15 08:21:37 -06:00
Aevann1 1f16140367 use cloudflare icon 2022-11-15 15:54:24 +02:00
justcool393 a9ebe37e61 sddsdsd 2022-11-15 06:52:17 -06:00
justcool393 3fba55b4ae fix unread 500 2022-11-15 06:51:48 -06:00
justcool393 08b88ef89b we don't need requests 2022-11-15 05:38:37 -06:00
justcool393 022a81a4b9 remove unnecessary feature_required flags, moving them to the routes import 2022-11-15 05:37:53 -06:00
Snakes 1e931b4d05
Fix clear_cloudflare_cache modlog icon. 2022-11-15 06:30:20 -05:00
justcool393 b2d0671734 merge fix: remove a couple of unnecessary from flask import *s 2022-11-15 05:28:45 -06:00