Commit Graph

13268 Commits (894011335bd5d9f0391939d8b94c2fc689f3e28b)

Author SHA1 Message Date
Aevann1 890b21923e remove unnecessary relationships 2022-07-02 08:54:34 +02:00
Aevann1 7db7abc3ab fix 500 error 2022-07-02 08:52:11 +02:00
Aevann1 1a0b2b6813 fix 500 errors 2022-07-02 08:51:19 +02:00
Aevann1 d0d15c319a Poll rework (#312)
* poll rework

* forgot to do joinedload on comments

* Fix logic errors with voting, SQL syntax.

Kitchen sink commit from review of poll-rework changes:
  1. Fix seed-db.sql syntax error.
  2. Fix SQL patch file duplication of *submissions* tables rather
     than one set of submissions and one for comments.
  3. Start makeshift SQL patch folder, since this is a large change
     that contributors may wish to apply to their local instances.
  4. Fix checkbox (non-`exclusive`) polls being unable to be
     unchecked. For consistency with `exclusive` polls, they should.
  5. Fix changing the option of an `exclusive` poll when both
     exclusive and non-exclusive options are present in one comment/
     post causing the non-exclusive options to become unchecked.
     (which, by my reading of SQLAlchemy `Query.one_or_none()`
     really could break quite badly in some cases).

* link relationships with their counterparts

* small modification to poll unchecking

Co-authored-by: TLSM <duolsm@outlook.com>
2022-07-02 08:48:04 +02:00
gooseman 671588d41c (((cachebust))) 2022-07-01 21:20:11 -07:00
Aevann1 83228249ad fix marseyschizochadseethecapylovepat 2022-07-02 03:38:32 +02:00
Aevann1 b26839a616 cachebust fireworks.js 2022-07-02 03:18:01 +02:00
Aevann1 77c1f96383 remove empty anchor tags 2022-07-02 02:54:59 +02:00
Aevann1 28786342dc fix snappy archiving images 2022-07-02 02:25:58 +02:00
Aevann1 100677c1bb fix 500 error 2022-07-02 01:18:41 +02:00
Aevann1 9f124e2c8d Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-02 01:11:51 +02:00
Aevann1 f56be06eb8 add hole pinning 2022-07-02 01:11:48 +02:00
Snakes fd73684329 Fix ext-link icon positioning on iOS. 2022-07-01 19:09:49 -04:00
Aevann1 fe22eefe41 make CTRL+Enter work in /create_hole page 2022-07-02 00:55:31 +02:00
Snakes f3b71f604e Fix ext-link positioning. 2022-07-01 18:43:50 -04:00
Aevann1 9e2c307838 making the icon look whiter 2022-07-02 00:36:27 +02:00
geese-suck a8a6b8e774 aevann change his mind like woman changing clothes 2022-07-01 15:30:08 -07:00
gooseman 650ba96f61 forgot 2 cachebust 2022-07-01 14:40:48 -07:00
gooseman ca344927c1 works maybe idk i didnt test it lol 2022-07-01 14:38:27 -07:00
Aevann1 3801189188 fix 2022-07-01 23:24:58 +02:00
Aevann1 d59f346f0b 1 less request, 1 less transaction, 1 less query 2022-07-01 23:10:48 +02:00
Aevann1 bc12edb5b9 add exception for chadmins 2022-07-01 22:22:10 +02:00
Aevann1 f10a858ea8 fix cron 2022-07-01 22:16:45 +02:00
Aevann1 25e594d673 Revert "no longer stop reposts from being posted"
This reverts commit 19e6e7f4d9.
2022-07-01 20:29:12 +02:00
Aevann1 7a682d95c6 fix 500 error 2022-07-01 20:19:21 +02:00
Aevann1 9ffc3015e2 testing 2022-07-01 20:09:56 +02:00
Aevann1 e8f5827c5e more testing 2022-07-01 15:34:11 +02:00
Aevann1 a917537c5f testing bandwidth 2022-07-01 15:28:22 +02:00
Aevann1 1676572f09 test 2022-07-01 15:15:44 +02:00
Aevann1 5bbd14ebd6 testing 2022-07-01 15:11:41 +02:00
Aevann1 5c6ce5e1d7 try to figure out what caused bandwidth spike 2022-07-01 14:09:41 +02:00
Aevann1 2fd8e88ceb try fixing inbound bandwidth 2022-07-01 13:32:01 +02:00
Aevann1 2c54180ddc remove print statement I forgot 2022-07-01 13:28:00 +02:00
Aevann1 ae837e50a3 try fixing insane inbound bandwidth 2022-07-01 13:27:37 +02:00
Aevann1 c2b892af04 search comments within a specific thread 2022-07-01 13:11:23 +02:00
Aevann1 503494f4af make glowmarsey and goldmarsey outline a little smaller 2022-07-01 12:42:55 +02:00
Aevann1 4a8dbecefd Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-01 12:41:36 +02:00
Aevann1 fe173398fc make me autoupvote posts in /h/slackernews and /h/space 2022-07-01 12:41:26 +02:00
Snakes 613af40ddf PCM: Swap sidebar image. 2022-07-01 04:15:39 -04:00
Snakes 1b9237ceaf Add assetcache.asset_siteimg, has_logo.
Commit began by changing the duplicated SITE_NAME conditional in the
header to use a `has_logo` param, much like the recent `has_sidebar`.
From there, a need to include site-specific assets in assetcache was
revealed, adding the `asset_siteimg(...)` macro. This was applied
quite broadly, though not comprehensively.
2022-07-01 01:55:53 -04:00
Snakes 39c945f7ca LGB: Initial sidebar & const. 2022-07-01 01:08:15 -04:00
Aevann1 605dc96cc7 remoev testing shit 2022-07-01 03:57:01 +02:00
Aevann1 d667472212 to devrama 2022-07-01 03:39:05 +02:00
Aevann1 05aa116a8a cutting down on query volume 2022-07-01 03:18:06 +02:00
Aevann1 0dbe7fe25f Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-01 02:52:18 +02:00
Aevann1 051f3261ed make glowmarsey and goldmarsey have the same size in animation 2022-07-01 02:52:14 +02:00
Snakes 8c1e4ea58f Hide admin vote totals in template when empty. 2022-06-30 20:16:27 -04:00
Aevann1 8c246e5678 separate large numbers by value in /votes 2022-07-01 01:42:55 +02:00
Aevann1 1362278cb4 add more data for jannies in /votes page (will use that in polls) 2022-07-01 01:39:09 +02:00
Aevann1 11d0163740 sneed 2022-07-01 01:28:33 +02:00
Aevann1 461eba7427 fix issue with reddit domain replacement 2022-07-01 01:06:39 +02:00
Aevann1 f46627bf5f Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-01 01:01:25 +02:00
Aevann1 cba02b9e4b fix issue with code blocks 2022-07-01 01:01:10 +02:00
2xsaiko b2461cd1d1 Fix quote rendering in chat (#310) 2022-06-30 19:01:01 -04:00
Aevann1 d9844231c7 fix replies to modmail not notifying the sender 2022-07-01 00:41:11 +02:00
Aevann1 95dc6bc4f3 fix old.reddit bug 2022-07-01 00:39:48 +02:00
Aevann1 aa53296d07 Revert "remove "filter" from allowed styles"
This reverts commit 14d929623e.
2022-07-01 00:18:05 +02:00
Aevann1 8194c31417 fix 500 error 2022-07-01 00:08:22 +02:00
Aevann1 14d929623e remove "filter" from allowed styles 2022-07-01 00:03:32 +02:00
Aevann1 374d87f5eb cashebust maxxxing 2022-06-30 22:40:31 +02:00
Aevann1 0c51979cbf remove frontpage exploit 2022-06-30 17:24:05 +02:00
Aevann1 08a4e7fa6f cachebust-maxxxing badges 2022-06-30 14:33:15 +02:00
Snakes 467eb4408a Fix hole_entered notif username.
Previously, the on_post_hole_entered notifs to hole followers would
contain the username of the admin who moved the post (due to
referencing the	`v` parameter of whomever performed the action which
placed the post in the hole). This has been corrected to use the post
author instead. Further, on_post_hole_entered only depends on a post
for behavior, though the optional `v` user is used if present.
2022-06-30 05:36:45 -04:00
Snakes 0b95dc8cd1 WPD: Update sidebar flairs, restyle margin. 2022-06-29 18:12:11 -04:00
Snakes f0c9a97fda Suppress notifs for posts from shadowed. 2022-06-29 16:38:59 -04:00
Aevann1 bf4e608dae sneed 2022-06-29 09:54:06 +02:00
Aevann1 6e52348432 sneed 2022-06-29 09:50:54 +02:00
Aevann1 070945d98a cut down on the number of queries 2022-06-29 09:22:18 +02:00
Aevann1 5661cdb271 Revert "try to cut down on number of db queries"
This reverts commit c674c6a056.
2022-06-29 08:43:20 +02:00
Aevann1 c674c6a056 try to cut down on number of db queries 2022-06-29 08:14:25 +02:00
Aevann1 c341be2866 show posts by users who block you 2022-06-29 05:07:00 +02:00
Aevann1 790a814b36 make "show more" button look nicer 2022-06-29 04:35:52 +02:00
Aevann1 0710ea02ac fix repost-checking for search URLs 2022-06-29 03:50:55 +02:00
Aevann1 bee182530d restore clicking on navbar to scroll to top 2022-06-29 03:49:47 +02:00
Aevann1 e7460874e9 double the timeout duration for sanitize() 2022-06-29 03:39:33 +02:00
Aevann1 19e6e7f4d9 no longer stop reposts from being posted
(just give the warning and that's it)
2022-06-29 03:37:44 +02:00
Aevann1 0371ee6c7c make "text-danger" less hostile on the eyes 2022-06-29 03:37:00 +02:00
Aevann1 5c597d4990 fix b3ca7ce8ac 2022-06-29 03:31:59 +02:00
Aevann1 b3ca7ce8ac check for repost when the page loads 2022-06-29 03:29:01 +02:00
Aevann1 0e46e46ce3 make "show more" switch to "show less" when clicked 2022-06-29 03:16:38 +02:00
Aevann1 b602a66dd6 fix issue with text exceeding character count despite not exceeding it 2022-06-29 03:13:11 +02:00
Aevann1 b6a5d010ca add "show more..." button 2022-06-29 02:55:44 +02:00
Aevann1 8f9d982104 fix posting 2022-06-29 02:45:51 +02:00
Aevann1 b5c9d9116f remove non-functional sorting by vote time 2022-06-29 01:53:52 +02:00
Aevann1 3ed41a0835 remove insane number of line breaks in rendered HTML 2022-06-29 01:53:41 +02:00
Aevann1 8d4f25de44 Revert "my OCD doesn't like unused code"
This reverts commit 7c80ea91c8.
2022-06-29 01:36:40 +02:00
Aevann1 9b45220542 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-29 01:35:00 +02:00
Aevann1 cf42c9c501 do this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2209654?context=8#context 2022-06-29 01:34:57 +02:00
Aevann1 7c80ea91c8 my OCD doesn't like unused code 2022-06-29 01:33:31 +02:00
Snakes adfad3e8a5 Swap lottery & random_user nav, and other nav. 2022-06-28 03:53:33 -04:00
Snakes 159af40cfe Fix /bet route not enforcing exclusive votes. 2022-06-28 03:43:16 -04:00
Aevann1 7e7450ef33 Made it possible to downvote poll options again
for schizocel my beloved
2022-06-28 09:20:29 +02:00
Aevann1 856a2c905c Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-28 08:35:28 +02:00
Aevann1 f4ff2b71fb restore accidentially removed condition 2022-06-28 08:35:24 +02:00
Snakes 08c2ec7223 Make pin disabling site-specific. 2022-06-28 02:27:25 -04:00
Aevann1 42a6b5731a sneed 2022-06-28 08:17:21 +02:00
Aevann1 4580cf534d fix strikethrough regex 2022-06-28 08:05:49 +02:00
Aevann1 b873492dd0 fix strikethrough, v2 2022-06-28 07:52:29 +02:00
Aevann1 50121f6960 fixed strikethrough 2022-06-28 07:41:21 +02:00
Aevann1 61d0c34b05 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-28 06:51:37 +02:00
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