Commit Graph

12946 Commits (294fddcba34220f400f5d86cb56b58d546265a77)

Author SHA1 Message Date
Aevann1 8d839b3e06 fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2131562?context=8#context 2022-06-23 23:04:16 +02:00
Aevann1 2d306bbba7 pause videos on comment collapse 2022-06-23 23:01:20 +02:00
Aevann1 4d692bebe8 make all form-submitting buttons get disabled after clicking
so spergs like me with poor motor control don't click twice and get hit with 429
2022-06-23 22:49:23 +02:00
Aevann1 38a5bf25c5 fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2133621?context=8#context 2022-06-23 22:14:41 +02:00
Aevann1 a3b4707b89 fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2135530?context=8#context 2022-06-23 22:08:22 +02:00
Aevann1 4723640b89 fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2175391?context=8#context 2022-06-23 22:02:40 +02:00
Aevann1 cff28b2070 add i.reddit.com to reddit_domain_regex 2022-06-23 22:00:49 +02:00
Aevann1 43836652e0 double viewmore threshold on old threads 2022-06-23 21:47:00 +02:00
Aevann1 2c1d1aceff fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2178607?context=8#context 2022-06-23 21:43:49 +02:00
Aevann1 810e80c010 fix issue with snappy url archival 2022-06-23 21:41:23 +02:00
Aevann1 6029e5b4fc try fixing golden marseys 2022-06-23 18:48:44 +02:00
Aevann1 ec9cdf1f23 try fixing golden marseys 2022-06-23 18:45:41 +02:00
Aevann1 ceb72a470c add more @lazy to functions 2022-06-23 18:36:39 +02:00
Aevann1 39cf7fc48b refactor normalizing urls at runtime (I put the function in comment.py cuz there were weird import errors that i didnt wanna fix) 2022-06-23 17:47:57 +02:00
Snakes 31d2ade68c Fix emoji modal DMing private profile. 2022-06-23 03:30:34 -04:00
Snakes 532b248847 Extend 'hole' search operator to comments. 2022-06-23 02:11:03 -04:00
Snakes 3d2e7e415a Focus emoji search input on modal open. 2022-06-23 01:53:29 -04:00
Aevann1 8045cfc118 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-23 03:41:01 +02:00
Aevann1 92e72b330b switch "browse holes" and "create hole" 2022-06-23 03:40:59 +02:00
gooseman 6fec7d51d9 make me notified (#308) 2022-06-22 21:37:27 -04:00
Aevann1 0c5ddeb1f7 make me autovote on all posts in subs 2022-06-23 03:03:28 +02:00
Aevann1 78b31df5c2 disallow ppl from faking golden and glowing marseys 2022-06-23 02:50:02 +02:00
Aevann1 9aa5443ad0 improve glowie marseys 2022-06-23 02:45:51 +02:00
Aevann1 c5dffd3368 double viewmore threshold 2022-06-23 02:37:03 +02:00
Aevann1 e42227ab67 add glowie marseys 2022-06-23 02:34:37 +02:00
Aevann1 233f24c0c4 make reddit notifs look neater (again) 2022-06-23 01:45:09 +02:00
Aevann1 262138b542 make reddit notifications look neater 2022-06-23 01:16:59 +02:00
Aevann1 7e6e04b231 sneed 2022-06-23 01:13:21 +02:00
Aevann1 175b63c02c double "view more" button threshold 2022-06-23 00:51:41 +02:00
Aevann1 8f2c2885d2 include psot body in reddit mentions too 2022-06-23 00:40:53 +02:00
Aevann1 a50544d86a fixing "more comments" button appearing when there's no more comments 2022-06-23 00:25:10 +02:00
Aevann1 0e1177843e remove the need for alert flag on sanitize() 2022-06-23 00:12:47 +02:00
Snakes 26273d0997 Revert "delete empty <a> tags to prevent exploits"
This reverts commit 5f78b4e365.

This commit is breaking @-mentions in a great many contexts and
I'm not quite sure how to fix it right now.
2022-06-22 18:00:23 -04:00
Snakes 36d24cf213 Refactor hole follow notifs to encapsulate.
Fixes bug where admins moving a post into a hole doesn't notify
followers of the destination hole.

Also, we now have a route endpoint for reholing that is potentially
usable for e.g. an actual post_actions button to rehole, rather than
the report command UI at present.
2022-06-22 17:21:12 -04:00
Aevann1 5f78b4e365 delete empty <a> tags to prevent exploits 2022-06-22 23:12:02 +02:00
Aevann1 b8321fd18d fix removing and approving comments on desktop 2022-06-22 23:06:06 +02:00
Aevann1 fe2ad1ae87 show poll options in markdown preview when editing 2022-06-22 23:02:37 +02:00
Aevann1 365d21ff9c fix this https://i.imgur.com/F0OiGKH.png 2022-06-22 23:00:09 +02:00
Aevann1 cbc2a07818 make "browse holes" button visible inside holes 2022-06-22 22:52:19 +02:00
Aevann1 ffcdc0aafe make hole banners bigger on desktop 2022-06-22 22:50:58 +02:00
Aevann1 d4264279f8 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-22 22:42:21 +02:00
Aevann1 0f0a07204c fix 500 errors 2022-06-22 22:42:19 +02:00
Snakes 7f8405ad35 CSS: hard wrap fa rules, remove fa anims. 2022-06-22 16:34:11 -04:00
Aevann1 152d39ce6c fix controversial sorting, give priority to new posts 2022-06-22 22:30:45 +02:00
Aevann1 cc3ddf3c8b Revert "Add polls thread to megathread directory."
This reverts commit 3d7d1e5ff7.
2022-06-22 22:10:01 +02:00
Snakes 3d7d1e5ff7 Add polls thread to megathread directory. 2022-06-22 16:07:33 -04:00
Aevann1 f149198c9f fix comments refactor 2022-06-22 22:06:25 +02:00
Aevann1 062542c5af fix posts refactor (again 2022-06-22 22:03:57 +02:00
Aevann1 3023a45d75 fix posts refactor 2022-06-22 22:03:10 +02:00
Aevann1 10a47ca837 refactor sorting posts 2022-06-22 21:57:57 +02:00
Aevann1 8ecb4582d0 refactor sorting comments 2022-06-22 21:50:20 +02:00
Aevann1 e1d0269a81 fix 413 error for patrons 2022-06-22 21:12:12 +02:00
Aevann1 f6bb11bdc2 make so it post subscription only give notifs to top-level comments 2022-06-22 20:05:56 +02:00
Aevann1 ebdda8c412 add poll_thread (fix) 2022-06-22 20:01:22 +02:00
Aevann1 414eb12410 add poll_thread 2022-06-22 20:01:00 +02:00
Aevann1 71d892a8a9 get file extension 2022-06-22 19:44:43 +02:00
Aevann1 aa403d5a3a fix intended quotes being turned into greentext 2022-06-22 19:26:29 +02:00
Aevann1 4ba26b7872 fix bug with profile views (again) (again) 2022-06-22 18:45:34 +02:00
Aevann1 fef2e9b024 fix bug with profile views older than a month (again) 2022-06-22 18:42:45 +02:00
Aevann1 171df8a2c1 fix bug with profile views older than a month 2022-06-22 18:42:07 +02:00
Aevann1 91d7725997 make me autoupvote posts in slackernews 2022-06-22 18:28:59 +02:00
Aevann1 9ecca715fd don't collapse the comment the user is viewing 2022-06-22 18:25:11 +02:00
Aevann1 5073258258 try to fix marseybux prinitng on PCM 2022-06-22 18:17:26 +02:00
Aevann1 d704592bdd cache-bust all previously broken images 2022-06-22 17:59:47 +02:00
Aevann1 0b2d0a981d fix broken images 2022-06-22 17:54:25 +02:00
Aevann1 20585ca543 add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes) 2022-06-22 17:51:19 +02:00
Snakes b561ca413c Hide names on reports in ghost threads. 2022-06-22 03:37:09 -04:00
Snakes 79ced3816c Add 'hole' search operator. 2022-06-22 02:35:50 -04:00
Snakes 70c87140a3 WPD sidebar: update rules, improve styling. 2022-06-22 00:49:10 -04:00
Snakes dedbc02968 Allow admin approval of others' TLM-less chudposts. 2022-06-21 21:13:25 -04:00
Snakes d5d221e773 Fix layout with both card and catalog view. 2022-06-21 16:06:08 -04:00
Aevann1 cc3feaffe3 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-21 16:34:55 +02:00
Aevann1 838afa93e8 stop my autoupvote 2022-06-21 16:34:50 +02:00
Snakes 5609a96e05 Fix info leak of removed & deleted via post embeds.
Embedded local posts (posts which link to posts on the same site)
embed the linked post using submission_listing.html via
helpers/jinja2:post_embed. This suffered from much the same issue
recently fixed in submission.html through the addition of
`v_forbid_deleted` in the template before outputting privileged
information. A similar fix has been applied to submission_listing.

Unfortunately, this is not the most elegant fix. Surely this would be
better resolved more centrally in the submission model. However, I am
not clear at present about the precise interaction between deletion,
removal, and realbody & realurl in all of the different places they
are used. This commit fixes the problem, but it also highlights a
potential future refactoring target.
2022-06-21 02:38:18 -04:00
Snakes f7a59f4672 Make search operators case insensitive.
In light of the fact that all searching against the database is done
using ILIKE pattern matching, the only truly case-sensitive part of
the search query was search operator keys. Rather than lowercase the
keys in `criteria` before returning, we instead lowercase the entire
search string at the beginning of parsing. This will further enforce
case-insensitivity on the design of search going forward.
2022-06-21 01:31:31 -04:00
Snakes e2cd25db67 WPD: limit hole creation to JL2+. 2022-06-21 01:20:21 -04:00
Snakes 4166b2d2f0 Content: chadsoy x2, more neo-gTLDs. 2022-06-21 01:03:33 -04:00
Snakes 6c00330042 Fix markdown ordered lists breaking after index.
Previously, Markdown ordered lists in user content (in posts,
comments, previews, etc) would display like this:

    1.
    Foo bar baz.

This is because sanitize populates them as <li><p>Foo bar baz.</p></li>
Rather than mess with the Markdown engine and still not have backwards
compatibility, this has been solved in the frontend using CSS to force
the <p> to display inline.
2022-06-20 20:45:05 -04:00
Marco Rebhan 3c5e2c9455 Include message text in off-site mentions 2022-06-20 18:32:46 -04:00
Snakes f59556cac3 stats: add WAU based on activity timestamp. 2022-06-20 16:33:47 -04:00
Snakes f6b6997f61 Persist activity timestamp to users. 2022-06-20 16:25:03 -04:00
Snakes 35720c0a63 Include holed post edit in mobile admin actions. 2022-06-20 11:58:58 -04:00
Snakes e212eb567d Exclude comments on drafts from edit limit.
Draft posts have already been excluded from the edit time limit for
obvious reasons--drafts are intended to be edited, and people use them
as personal megathreads on their profiles. Largely for the latter
use case, this commit also excludes comments on drafts from the limit.
2022-06-20 07:39:45 -04:00
Snakes dee8eb5154 Replace loading.webp with new marseyloading. 2022-06-19 22:15:33 -04:00
Aevann1 c91f09b83f put author username in mod action notifs 2022-06-20 01:08:21 +02:00
Aevann1 b5df4bca40 make expanded images' size be at least 50% of window width 2022-06-20 00:46:36 +02:00
Aevann1 ccd4dfa6ee fix my upsoren being added before OP's upsoren 2022-06-19 23:40:07 +02:00
Aevann1 17c7529977 add ceiling to link boost 2022-06-19 23:38:25 +02:00
Aevann1 7c5e8c04b0 add .dev tld 2022-06-19 22:32:12 +02:00
Aevann1 ef3fbbf520 adjusting greentext regex 2022-06-19 22:22:36 +02:00
Aevann1 3f96a1c310 increase assetcache 2022-06-19 21:10:19 +02:00
Aevann1 0744a91a2f fix greentexting on 4chan theme 2022-06-19 21:06:54 +02:00
Aevann1 f77a7b7cfc fixed double quoting and triple quoting, etc 2022-06-19 20:21:25 +02:00
Aevann1 fa2681c886 fix for fae784336 2022-06-19 19:49:22 +02:00
Aevann1 d7de4f923a fix for 96163b17bb 2022-06-19 19:46:24 +02:00
Aevann1 17c3fe9e4c make me auto-upvote all posts in holes 2022-06-19 19:45:48 +02:00
Aevann1 96163b17bb fix bug that made ppl unable to post images 2022-06-19 19:31:59 +02:00
Aevann1 3eb788103c allow only ascii characters in links (https://rdrama.net/comment/2150032) 2022-06-19 19:25:55 +02:00
Aevann1 14ffb39ba6 increase edit_comment ratelimit 2022-06-19 19:16:18 +02:00
Aevann1 d9cdbd0015 return to only allowing images/videos/audio 2022-06-19 18:56:45 +02:00