Commit Graph

13268 Commits (894011335bd5d9f0391939d8b94c2fc689f3e28b)

Author SHA1 Message Date
Aevann1 8ba9aab351 fix WPD's bug 2022-06-28 06:51:34 +02:00
Snakes b50151e120 Commit db txn on comment spam 403. 2022-06-27 23:22:38 -04:00
Aevann1 1a1b57d3d9 make "toggle preview" button in the same row as other buttons 2022-06-28 04:09:23 +02:00
Aevann1 8475a2352e Revert "remove "toggle preview" button"
This reverts commit d2036a34f3.
2022-06-28 04:06:57 +02:00
Aevann1 4a1359713f use the variable "poll_bots" 2022-06-28 04:00:28 +02:00
Aevann1 cbbd361197 fix rehab award 2022-06-28 03:39:55 +02:00
Aevann1 d2036a34f3 remove "toggle preview" button 2022-06-28 03:38:45 +02:00
Aevann1 d4d53d57d0 disable pinning comments too 2022-06-28 03:34:17 +02:00
Aevann1 aac17a6daa show the username of the janny who banned 2022-06-28 02:59:08 +02:00
Aevann1 cd811d7b9d consistent lottershe naming 2022-06-28 02:54:44 +02:00
Aevann1 4fae28a2a2 fix child comment highlighting 2022-06-28 02:41:25 +02:00
Aevann1 bb9d842f81 disable progressive stack too 2022-06-28 02:28:59 +02:00
Aevann1 67bc27cb8c Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-28 02:24:19 +02:00
Aevann1 d10a1c8693 disable pinning for 3 days 2022-06-28 02:24:16 +02:00
Snakes b7a85fe9f3 Fix beforeunload prompt posting on /h/foo/submit.
The /submit frontend has special behavior to prevent the confirmation
prompt before navigation away onbeforeunload. This is to suppress the
prompt when navigating away via submitting the form as part of the
intended workflow. (otherwise pressing 'Post' looks like you're about
to lose your input.)

This has been extended to the /h/<sub>/submit pages also by correcting
the condition in the frontend logic.
2022-06-27 18:38:18 -04:00
Aevann1 79479d9ffd make it so u dont get pinged by ur own comment on a subscribed thread 2022-06-27 21:13:19 +02:00
Aevann1 75bdbed7f9 reduce initial viewmore threshold for poorcels 2022-06-27 21:08:05 +02:00
Aevann1 a0cb5874cc refactor push notifs 2022-06-27 21:02:24 +02:00
Aevann1 73190a8164 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-27 20:42:44 +02:00
Aevann1 d31d6b8617 restore push notifs 2022-06-27 20:42:41 +02:00
Snakes 8af70c9aab Fix emoji modifiers not rendering in preview.
Root cause 3aa6a838cb
2022-06-27 04:39:40 -04:00
Snakes a3e05a86d3 Enforce minimum width on header dropdown.
The header dropdown menu's horizontal positioning depends on the
width of the user pfp/username/currency region to not overflow off
the right side of the page. Therefore, we enforce a minimum width.

There is presumably some way to fix this by right-aligning the right
side of the dropdown menu to the right side of the dropdown header.
I didn't want to risk it given the strange interplay of all of the
Bootstrap styling and the media queries. Also, it does visually
look better to be left-aligned.
2022-06-27 03:45:46 -04:00
Snakes d68f2a604a Check bot award timers more frequently.
Also: change to docker-compose.yml is to see if it'll fix the Github
tests failing. Lumped in here because it's too dumb to make a commit
for by itself.
2022-06-27 02:15:35 -04:00
Aevann1 197637b872 expand CTRL+ENTER 2022-06-27 08:01:30 +02:00
Aevann1 b6b57636df Revert "make CTRL+ENTER possible with gifting"
This reverts commit b124afb60f.
2022-06-27 07:58:54 +02:00
Aevann1 fd75733831 don't commit if error happens 2022-06-27 07:24:11 +02:00
Aevann1 5186b9a3f7 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-27 07:14:48 +02:00
Aevann1 e527dec36b fix mentions in marquees 2022-06-27 07:14:45 +02:00
Snakes 8d71dd751d Make spoilers hide emoji. 2022-06-27 01:01:19 -04:00
Aevann1 41b7b1298e add logic for 100 marseys badge 2022-06-27 06:42:39 +02:00
Aevann1 5661871255 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-27 06:10:14 +02:00
Aevann1 ab5078f313 show vote time 2022-06-27 06:10:10 +02:00
Snakes 1d500917ad Improve header currency display style. 2022-06-27 00:09:32 -04:00
Aevann1 3aa6a838cb fixed markdown preview rendering emojis that arent actually emojis 2022-06-27 06:01:43 +02:00
Aevann1 7050932fe0 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-27 05:46:36 +02:00
Aevann1 52a8a219ae make poorcel-mode device-specific 2022-06-27 05:46:32 +02:00
Snakes 6c97faeb55 WPD: sidebar flairs list update. 2022-06-26 23:37:52 -04:00
Aevann1 234cbe47ee make it possible to sort downvotes too 2022-06-27 04:50:13 +02:00
Aevann1 26d46a9cb9 make sorting tables less retarded 2022-06-27 04:47:49 +02:00
Aevann1 44c588fce3 make text in settings less small 2022-06-27 04:35:40 +02:00
Aevann1 38358cafe4 make publishing a draft reload the page instead of going to the post 2022-06-27 04:34:15 +02:00
Aevann1 03a9a5752b Revert "trying to fix weird banner behavior"
This reverts commit 8d0a674f4e.
2022-06-27 04:33:59 +02:00
Aevann1 6bd4efa61f Revert "make small text less small"
This reverts commit 42b0f37034.
2022-06-27 04:33:38 +02:00
Aevann1 8d0a674f4e trying to fix weird banner behavior 2022-06-27 04:24:56 +02:00
Aevann1 46c9c719d0 fixed 500 error 2022-06-27 04:22:12 +02:00
Aevann1 6ff420e338 add a public list of poorcels 2022-06-27 04:21:34 +02:00
Aevann1 42b0f37034 make small text less small 2022-06-27 04:18:14 +02:00
Aevann1 b1ef8e4c62 add poorcel mode 2022-06-27 04:14:53 +02:00
Aevann1 b5d993569f embed rework 2022-06-27 03:00:45 +02:00
Aevann1 785cea9c4c fix 500 eror on signup 2022-06-27 02:49:30 +02:00
Aevann1 f48b16d0ca make it so when u make a comment with polls, you see the polls immediately
(instead of needing to refresh)
2022-06-27 00:32:32 +02:00
Aevann1 b124afb60f make CTRL+ENTER possible with gifting 2022-06-27 00:27:41 +02:00
Aevann1 baa105958e dirty hack to make stacked emojis work in markdown preview 2022-06-27 00:17:39 +02:00
Aevann1 667355b952 don't highlight voted comments as "unread" 2022-06-26 23:57:02 +02:00
Aevann1 8e73d7aaad remove checking for device RAM 2022-06-26 23:48:39 +02:00
Aevann1 8b8f99695b make ppl with 200 coins able to bet 2022-06-26 23:40:02 +02:00
Aevann1 52e0f21c75 make /h/braincels jannies unable to exile ppl 2022-06-26 23:34:09 +02:00
Aevann1 58867084af temporarily disable push notifs to get rid of console spam 2022-06-26 23:04:11 +02:00
Aevann1 e7ce39bd80 fix poll-voting 2022-06-26 22:53:12 +02:00
Snakes 8185340e15 WPD: rearrange & style sidebar flairs. 2022-06-26 06:39:53 -04:00
Snakes fe5d339386 WPD: Update sidebar flairs. 2022-06-26 05:15:12 -04:00
Snakes 0311160c1a WPD: update flair sidebar pre-launch. 2022-06-26 03:42:57 -04:00
Snakes e0c3c79902 WPD: Require flairs on all posts. 2022-06-26 03:42:56 -04:00
Snakes 7b92db114a WPD: preliminary sidebar flair list. 2022-06-26 03:42:32 -04:00
Snakes 268c23e2f8 WPD: make holes more flair-like in UI. 2022-06-26 03:42:15 -04:00
Snakes cd556b6d8e Refactor UI name of hole/sub to constant. 2022-06-26 03:41:28 -04:00
Snakes 13ceb8818d Commit txn in /notifications (by @Aevann1). 2022-06-26 03:01:01 -04:00
Aevann1 c715185e85 temp fix for bullshit 2022-06-26 08:35:41 +02:00
Aevann1 49032231d3 sort the functions after request by chronological order 2022-06-26 08:33:08 +02:00
Aevann1 39ee9e5ff1 fix voting 2022-06-26 08:31:53 +02:00
Aevann1 b450d5bb8c fix sorting by bottom for comments 2022-06-26 08:16:05 +02:00
Aevann1 81243b48dd fix sorting by top/bottom for posts 2022-06-26 08:15:06 +02:00
Aevann1 5e745e38d3 revert the saving and subscription shit 2022-06-26 08:11:38 +02:00
Aevann1 5aad7e09a6 dont query polls on frontpage 2022-06-26 08:10:02 +02:00
Aevann1 4d7e7b629b fix 0ef33b396a 2022-06-26 07:51:02 +02:00
Aevann1 afdc9605ca make checking if a comment is saved less retarded 2022-06-26 07:48:39 +02:00
Aevann1 0ef33b396a make checking if a post is subscribed to less retarded 2022-06-26 07:45:49 +02:00
Aevann1 2a8b7bf281 undefer css (1 less query) 2022-06-26 07:39:46 +02:00
Aevann1 1367d944da commit only when status code is 200 2022-06-26 07:37:36 +02:00
Aevann1 e022b29ef6 rework custom css a little 2022-06-26 07:26:45 +02:00
Aevann1 e36adb5bf4 reduce query volume, badge edition 2022-06-26 07:11:25 +02:00
Aevann1 74978bfbf7 Revert "put custom CSS into HTML templates"
This reverts commit 19c82b7ea1.
2022-06-26 07:07:28 +02:00
Aevann1 49e39b94bc fix signups 2022-06-26 07:03:30 +02:00
Aevann1 ecc22cfc06 fix 2b1e7f6570 2022-06-26 06:57:31 +02:00
Aevann1 2b1e7f6570 make checking if a post/comment is saved less retarded 2022-06-26 06:54:41 +02:00
Aevann1 19c82b7ea1 put custom CSS into HTML templates 2022-06-26 06:33:41 +02:00
Aevann1 e34cbeca31 fix 3b8188fd67 2022-06-26 03:25:17 +02:00
Aevann1 3b8188fd67 fixed version of d83d47e280 2022-06-26 03:22:05 +02:00
Aevann1 a1b137447e Revert "reduce query volume #1"
This reverts commit d83d47e280.
2022-06-26 03:12:31 +02:00
Aevann1 cff34fb3a4 reducing query volume, #2 2022-06-26 03:11:02 +02:00
Aevann1 cd4b3b7d3b Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-26 02:50:49 +02:00
Aevann1 d83d47e280 reduce query volume #1 2022-06-26 02:50:47 +02:00
Snakes 7b38be0101 Reduce query volume in user.user_awards.
The User model class method user_awards previously made one query
per type of award. This has been replaced with a new query that
retrieves all owned award quantities at once using GROUP BY.
2022-06-25 20:22:56 -04:00
Aevann1 f184351d5d make glowie marsey not clip 2022-06-25 22:48:41 +02:00
Aevann1 bc7185b5af order awards by the time they were awarded 2022-06-25 22:33:51 +02:00
Aevann1 c1d227e2b6 exclude poll bots from "simps for" lists 2022-06-25 22:24:47 +02:00
Aevann1 af680d8a94 make it whenever a post has "thread" (instead of "megathread") in the title, the comments are ordered by new 2022-06-25 21:55:29 +02:00
Aevann1 7a402d2449 order pins by new 2022-06-25 21:54:18 +02:00
Aevann1 905e32c60c remove the javascript block i used for testing 2022-06-25 19:29:34 +02:00
Aevann1 2b86a8fee0 minor tweak to modal behavior 2022-06-25 19:14:57 +02:00
Aevann1 c53b8dae81 add ability to sort votes table by truescoer 2022-06-25 17:44:02 +02:00
Aevann1 f415b469de Revert "Exclude self-votes from user vote summaries totals."
This reverts commit 69482aed3a.
2022-06-25 17:41:36 +02:00
Aevann1 5d777a07b0 cache bust 2022-06-25 17:36:35 +02:00
Aevann1 1abcbecf19 fix RAM shit 2022-06-25 17:33:46 +02:00
Aevann1 be0c473171 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-25 17:20:37 +02:00
Aevann1 66586dfce3 testing RAM thing 2022-06-25 17:20:34 +02:00
Snakes 69482aed3a Exclude self-votes from user vote summaries totals.
The user routes upvoters, downvoters, upvoting, and downvoting
now exclude self-votes from the summary totals.

Also, the diff touches a number of other lines where the local
variable `id` was renamed to `uid` for semantic clarity.
2022-06-25 02:00:09 -04:00
Snakes aaf718c78c Fix timeout in sanitize from link_fix_regex.
h/t to @official-techsupport for finding and help fixing this bug.
When given certain pathological input, `sanitize` would time out
(notably only on posts, rather than comments, perhaps due to the
longer maximum length of input). For example, using as input the
result of:

    with open("test.txt", "w") as f:
        for i in range(26):
            f.write(f":{chr(ord('a') + i)}: ")
        f.write('x' * 20_000)

We believe this to be because of some combination of the greedy
quantifiers and the negative lookahead before the match. The regex
was rewritten to (in theory) have much more linear performance.
2022-06-25 01:28:43 -04:00
Aevann1 70c2b2cffa try fixing RAM thing 2022-06-25 05:19:28 +02:00
Aevann1 e4c50939e6 Revert "make threshold for RAM 3GB instead of 2.99GB"
This reverts commit 37b8fc5666.
2022-06-25 05:06:25 +02:00
Aevann1 37b8fc5666 make threshold for RAM 3GB instead of 2.99GB 2022-06-25 05:01:19 +02:00
Aevann1 a990e6cf6e small adjustment to emoji search 2022-06-25 04:44:06 +02:00
Aevann1 6dc824b29e make emoji search work on "enter" only for 3GB RAM and lower 2022-06-25 04:22:04 +02:00
Aevann1 59302696f6 remove 150 truescore requirement on discord 2022-06-25 04:00:49 +02:00
Aevann1 56a317bb56 "Bux" to "Marseybux" 2022-06-25 03:54:23 +02:00
Aevann1 51c91de1dd fix bug with confirmation dialog 2022-06-25 02:25:08 +02:00
Aevann1 6dcf3fde2d reduce viewmore threshold to 100 again 2022-06-25 02:18:06 +02:00
Aevann1 149db9ebe3 cachebust marked.js 2022-06-25 02:17:16 +02:00
Aevann1 ffd0d9ed31 show duration on ban icon tooltip 2022-06-25 02:11:00 +02:00
Aevann1 d59a80245d add total counter for simps, haters, simping for, hates 2022-06-25 01:22:20 +02:00
Aevann1 55ebd98f40 add confirmation dialog when u close tab while text is in commentbox/messagebox 2022-06-25 00:58:15 +02:00
Aevann1 2e8fb4ac07 sneed 2022-06-25 00:27:42 +02:00
Aevann1 5ce276854d remove the 1wk edit limit for posts, but keep it for comments 2022-06-25 00:21:37 +02:00
Aevann1 ab1f6fac65 fix 500 error 2022-06-24 22:54:45 +02:00
Aevann1 25a95dfb3e Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-24 22:52:43 +02:00
Aevann1 cbdf3f0a18 fix snappy 2022-06-24 22:52:38 +02:00
Snakes 47159f338d Fix exception when serializing comments JSON.
The JSON API endpoints that return comments, most notably `/comments`
returned 500s and created a stack trace with:

  TypeError: Object of type method is not JSON serializable

Further debugging revealed this was because json.encoder was being
given a <bound method lazy.<locals>.wrapper of <Comment(id=123)>> to
serialize.

The introduction of the bug was traced to 8ecb4582d0 where it was
discovered that the (seemingly inadvertent) removal of the @property
decorator on classes/comment.py:parent_fullname was the root cause.

In light of the fact that parent_fullname was unrelated to the changes
intended in 8ecb4582d0 and that no other refactoring around
parent_fullname was done, it was restored to being a @property rather
than its callers modified to invoke it as a method.
2022-06-24 15:26:18 -04:00
Aevann1 a2a9c2666d make sure snappy's comment body doesnt get above 10k characters 2022-06-24 20:10:28 +02:00
Aevann1 6b1560a9d2 add hunter biden's fart 2022-06-24 19:56:28 +02:00
Aevann1 43751dc4ec Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-24 19:32:34 +02:00
Aevann1 c5c21da76f validate colors 2022-06-24 19:32:31 +02:00
Snakes e896a965ad Fix crab award media path. 2022-06-24 13:22:23 -04:00
Aevann1 a64dd729e8 escape asterick when quoting 2022-06-24 18:25:21 +02:00
Aevann1 743ac90f08 fix 500 error 2022-06-24 18:15:37 +02:00
Aevann1 13143a72ab disable animations for ppl with lower than 3GB RAM 2022-06-24 18:12:58 +02:00
Aevann1 17c81ea9ef reduce margin above "toggle preview" 2022-06-24 17:40:05 +02:00
Aevann1 41cebb7f80 fix accidential greentext in chat 2022-06-24 17:37:31 +02:00
Aevann1 de8981b5e5 fixing 500 errors 2022-06-24 17:35:55 +02:00
Aevann1 f34c4e1196 stop using app.config for our own stuff 2022-06-24 17:08:57 +02:00
Aevann1 fcf600cb35 fix this https://chapotraphouse.club/post/79771/workaholics-are-worse-for-society-than/2183396?context=8#context 2022-06-24 16:45:19 +02:00
Aevann1 9593dc58dd move regex from helpers.const into its own helper file 2022-06-24 16:30:59 +02:00
Aevann1 68dc17ca4e fix ea37966aff 2022-06-24 16:18:48 +02:00
Aevann1 ea37966aff disable all cosmetic awards on devices with less than 3GB ram 2022-06-24 16:17:45 +02:00
Aevann1 1d29aaa00f make the disable function do 2 seconds instead of 1 second 2022-06-24 16:12:04 +02:00
Aevann1 6a6f52f4ee increase "view more" threshold 2022-06-24 16:11:00 +02:00
Aevann1 f7c3cfbf5b fix 66eb63dcee 2022-06-24 16:10:05 +02:00
Aevann1 5d98f1095d actually use the get functions, v2 2022-06-24 15:21:05 +02:00
Aevann1 6f6d01c1c6 actually use the get functions 2022-06-24 15:19:53 +02:00
Aevann1 66eb63dcee reload pages on back button for me 2022-06-24 15:07:12 +02:00
Aevann1 53fe1ffc60 fix modal behavior 2022-06-24 07:22:04 +02:00
Aevann1 69d247c433 revert autoupvoting posts 2022-06-24 07:12:17 +02:00
Aevann1 4e067579d5 fix disable() function not working 2022-06-24 05:00:35 +02:00
Aevann1 895f08e34e put disable() in a more general js file 2022-06-24 04:56:14 +02:00
Aevann1 ef3843f628 add timer to re-enable form buttons after 1 second 2022-06-24 04:53:31 +02:00
Aevann1 4d90b626d4 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-24 04:48:09 +02:00
Aevann1 ff49bf52ac better modal behavior 2022-06-24 04:48:07 +02:00
Snakes ce79b1d84b PCM: lottery duration back to 1wk. 2022-06-23 22:40:51 -04:00
Aevann1 222367cea8 fix 500 errors 2022-06-24 03:28:34 +02:00
Aevann1 9dbe67bf90 respect user's chosen themecolor 2022-06-24 03:27:49 +02:00
Aevann1 96e14111e3 do this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2021584?context=8#context 2022-06-24 03:25:12 +02:00
Aevann1 a1a28a172d don't create a modal instance if one exists 2022-06-24 03:06:13 +02:00
Aevann1 6eabd99067 hide modals on back button (instead of going back 1 page) 2022-06-24 03:05:49 +02:00
Aevann1 b3980660c1 fix leaderboard bug for badges 2022-06-24 02:29:13 +02:00
Aevann1 4c6bc3cdfd make emoji_modal neater on mobile 2022-06-24 01:57:02 +02:00
Aevann1 e909f4e6fc forgot to cache-bust header.js 2022-06-24 01:11:00 +02:00
Aevann1 4fc8520e24 remove post_toast2() and post_toast3() and incorporate them into post_toast() 2022-06-24 01:07:47 +02:00
Aevann1 b17333b2a0 fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2046517?context=8#context 2022-06-24 00:46:07 +02:00
Aevann1 6463cbd1f4 "kike" slur filter modification 2022-06-24 00:33:39 +02:00
Aevann1 6803d83af4 fix wrong template being shown on error when changing colors 2022-06-24 00:22:41 +02:00
Aevann1 39a5971db7 add minlength to hexcodes in settings 2022-06-24 00:19:54 +02:00
Aevann1 b965666c2d fix catalog view not working while logged-out 2022-06-23 23:46:31 +02:00
Aevann1 80db653d3f fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2130416?context=8#context 2022-06-23 23:25:07 +02:00
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