forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

7770 Commits (969d1898b5e16ce4ed229fa830767cadef6e3b1e)

Author SHA1 Message Date
Nekobit 1c363303f0 g (#242) 2022-05-05 04:15:23 +02:00
geese 02928305ed aaa 2022-05-04 21:29:59 -04:00
Aevann1 2008bc76c1 cakedays 2022-05-05 01:31:11 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
TLSM 8fb6067701 Fix viewmore on removed post. (#241) 2022-05-05 01:07:45 +02:00
Aevann1 7c88c2e7e5 dgf 2022-05-04 23:42:34 +02:00
Aevann1 c96992f67b fsd 2022-05-04 23:39:11 +02:00
Aevann1 46e391b5a7 fsd 2022-05-04 23:32:30 +02:00
Aevann1 e70ddb99c5 gf 2022-05-04 02:40:08 +02:00
Aevann1 a35ef11d77 fds 2022-05-03 21:19:00 +02:00
Aevann1 095e5cb0af sanitize 2022-05-03 21:07:15 +02:00
Aevann1 18a4e7b0ca fsd 2022-05-03 07:58:10 +02:00
Aevann1 5e2da5673c fsd 2022-05-03 06:28:42 +02:00
Aevann1 7b834f2831 fd 2022-05-03 02:13:57 +02:00
Nekobit 94edc2ce52 Fix emojis on freakish browsers & fix buttons (#240)
thx u nekobit
2022-05-02 19:54:10 -04:00
Aevann1 df9585017c dsa 2022-05-02 23:30:03 +02:00
TLSM 8eb86b965c Partially revert self-upvote UI bug fix. (#239)
Turns out the snippet in templates/comments.html was necessary to
get proper behavior in notifications.

Might come back to debug this later, but people use notifications more
than they deal with edge case self-upvotes, so reverting for now.

The changes to prevent coin fuckery with self-upvoting appear to work
correctly in the wild, so leaving those in place.
2022-05-02 21:42:28 +02:00
Aevann1 18509b653a dfg 2022-05-02 21:39:18 +02:00
carpathianflorist e051ac8b8b Update journoid_banner.html 2022-05-02 15:13:10 -04:00
Aevann1 cd78de4d0b sdf 2022-05-02 21:11:03 +02:00
Aevann1 93ab0a1365 dfg 2022-05-02 21:10:49 +02:00
Aevann1 8b24faf9fd sdf 2022-05-02 20:56:10 +02:00
Aevann1 dbe0bf076e tre 2022-05-02 20:50:43 +02:00
TLSM 63d344c2d0 Add badge quantity and rarity to /badges. (#238)
Implements feature request to know how many of each badge exists and
to have a 'rarity', a la Steam or PSN badges, relative to number of
non-lurker users.

Because Postgres `COUNT()`s are notoriously costly, /badges has been
memoized for 1hr to avoid a DOS target.
2022-05-02 20:14:06 +02:00
TLSM 020fe6033c Update journoid banner entries. (#237)
Fix Business Insider URL: was duplicate of LoTT Mashable link.
Add Glenn Beck Program mention.
2022-05-02 20:13:07 +02:00
TLSM d1e2926ca3 Fix comment self-upvote removal UI bug. (#236)
Fixes minor UI bug when removing self-upvote on a comment. Previous
behavior, starting from a new comment:
    - Initial state: score 1 from self-upvote, upvote button shows
      highlighted as `color: var(--primary)`.
    - Click on upvote button to remove self-upvote → button
      unhighlights, score displays as 0.
    - [reload page]
    - Score displays as 0, but button is highlighted.
    - Click on upvote button → button unhighlights, score displays
      as -1. [If you reload the page now, state is score 0 &
      highlighted; no change in serverside votes.]
    - Click on upvote again → button highlights, score displays as 0.
    - [reload page]
    - Score displays as 1, button is highlighted.
Direct cause is `templates/comments.html @ L115-117`. I checked
`api_comment`, though, and it adds a vote on new comments, and that
state change propagates to the template's parameters before it renders,
so I believe the only time this triggers is specifically when a user
has removed their self-upvote. Bug is fixed when testing with L115-117
removed. Is there some other edge case it was meant to solve?

Secondary bugfix: Removing a self-upvote _costs_ you a coin & a
truescore point. I think this is one of the few ways to get negative
dramacoin. I chose to fix it by having self-votes and self-unvotes not
change coins/truecoins. The alternative of having new comments & posts
give the user +1 coin/truecoin would modify site behavior, and you'd
retroactively owe some powerusers thousands of DC & truescore.
2022-05-02 20:12:28 +02:00
Aevann1 53ac9ab777 dfs 2022-05-02 03:06:20 +02:00
Aevann1 6b3987299c sdf 2022-05-02 02:41:00 +02:00
Aevann1 999c16e439 sfd 2022-05-02 02:04:25 +02:00
Aevann1 14ffac7db0 fsd 2022-05-02 02:02:31 +02:00
Aevann1 f3983ab491 sdf 2022-05-02 02:02:19 +02:00
Aevann1 41f08325fa sdf 2022-05-02 01:58:06 +02:00
Aevann1 6619c2f4b2 dfg 2022-05-02 01:55:55 +02:00
Aevann1 ecf20686bb jg 2022-05-02 01:51:47 +02:00
Aevann1 195ea385e3 gfd 2022-05-02 00:56:19 +02:00
Aevann1 94e6eb1ef6 sdf 2022-05-02 00:28:51 +02:00
Aevann1 a4b0565b5a sfd 2022-05-01 23:48:53 +02:00
Aevann1 bc2a20cd4b sfd 2022-05-01 23:44:38 +02:00
Aevann1 394402c0c1 fsd 2022-05-01 02:53:24 +02:00
Aevann1 d08a6010c8 dfs 2022-04-29 21:19:54 +02:00
Aevann1 b0384c3647 sfd 2022-04-29 17:58:37 +02:00
Aevann1 e73fcbd56a sfd 2022-04-29 17:17:14 +02:00
Aevann1 01e55c142a fsd 2022-04-29 16:28:13 +02:00
Aevann1 ebba5fd9b3 gdf 2022-04-29 15:36:33 +02:00
Aevann1 0cfb1be47f Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-04-29 00:03:34 +02:00
Aevann1 ceb03b25bc gfd 2022-04-29 00:03:31 +02:00
TLSM 3e8e299fb8 Add dynamic journoid banner text. (#232)
The .srd header banner currently has fixed text. However, there have
been many gayops which have made the news. journoid_banner.html is a
dynamic template which selects a random one to present.

Also, stylesheets and markup for the banner have been unslurred.
2022-04-28 23:58:41 +02:00
Aevann1 be32f091bc dsf 2022-04-28 03:38:17 +02:00
Aevann1 43563ec143 sfd 2022-04-28 03:02:37 +02:00
Aevann1 8ae52ed35b dsf 2022-04-28 02:45:49 +02:00
Aevann1 3061801270 fds 2022-04-28 02:44:38 +02:00
Aevann1 47fd1afa91 sfd' 2022-04-28 02:37:12 +02:00
Aevann1 5a689be072 dg4 2022-04-28 02:13:30 +02:00
Aevann1 d961ffc913 fds 2022-04-28 02:04:01 +02:00
Aevann1 20f925afb7 fds 2022-04-28 01:09:39 +02:00
Aevann1 6db7bd5885 fsd 2022-04-28 00:43:22 +02:00
Aevann1 583765f259 czx 2022-04-27 17:03:25 +02:00
Aevann1 50022797a7 fds 2022-04-27 16:29:32 +02:00
gooseman 967b1b5141 make logo not giant lol 2022-04-26 17:25:06 -04:00
Aevann1 5a49be1d47 fsd 2022-04-26 15:40:37 +02:00
Aevann1 79c6630285 gf 2022-04-26 15:28:35 +02:00
Aevann1 1f7d343ff6 sfd 2022-04-26 00:45:05 +02:00
Aevann1 13166f5ca3 vcx 2022-04-26 00:43:59 +02:00
Aevann1 2d1d946919 vxc 2022-04-26 00:41:34 +02:00
Aevann1 5d8fdef38c fsd 2022-04-26 00:36:47 +02:00
Aevann1 72346b4e88 fsd 2022-04-26 00:35:27 +02:00
Aevann1 18acaa8dd1 nv 2022-04-26 00:29:35 +02:00
Aevann1 0f05bf3f94 fsd 2022-04-26 00:28:20 +02:00
Aevann1 139a01998b ti 2022-04-25 23:41:46 +02:00
Aevann1 836ed4ba91 vxc 2022-04-25 22:07:03 +02:00
Aevann1 9479dc8016 vcx 2022-04-25 22:00:04 +02:00
Aevann1 4bf5a2a3c4 l;k 2022-04-25 21:44:57 +02:00
Aevann1 0ed35ce69f vxc 2022-04-25 21:42:35 +02:00
Aevann1 ddbafe7d78 vcx 2022-04-25 17:48:36 +02:00
Aevann1 94a190a46b czx 2022-04-25 00:38:24 +02:00
Aevann1 d5a37f475c czx 2022-04-25 00:35:41 +02:00
Aevann1 d83410a27a dfs 2022-04-24 23:19:01 +02:00
Aevann1 89b49f9337 sdf 2022-04-24 22:52:10 +02:00
Aevann1 8f1f605877 c 2022-04-24 21:18:19 +02:00
Aevann1 2f14624ffe vcx 2022-04-24 21:09:36 +02:00
Aevann1 d1a4527e97 fds 2022-04-24 21:04:00 +02:00
Aevann1 b554065c49 vcx 2022-04-24 19:30:05 +02:00
Aevann1 811a8daad9 fds 2022-04-24 19:09:47 +02:00
Aevann1 6ea487a6e7 fsd 2022-04-24 18:25:01 +02:00
Aevann1 5fd4a0d83d fds 2022-04-23 01:32:48 +02:00
Aevann1 df046d4677 dsf 2022-04-23 01:31:55 +02:00
Aevann1 68add1eb36 fds 2022-04-23 00:07:58 +02:00
Aevann1 8b49c6772e fds 2022-04-22 22:27:24 +02:00
Aevann1 be49ed862f fds 2022-04-22 22:08:52 +02:00
Aevann1 c447af6f50 fdssfd 2022-04-22 22:02:47 +02:00
Aevann1 e384356b33 fsd 2022-04-22 21:41:37 +02:00
Aevann1 d5453085a4 fds 2022-04-22 21:26:49 +02:00
Aevann1 d97343c5be fsd 2022-04-22 21:24:28 +02:00
Aevann1 6b02d11238 sfd 2022-04-22 21:23:38 +02:00
Aevann1 e391ef7a29 fds 2022-04-22 21:22:11 +02:00
Aevann1 c6252e30e0 fsd 2022-04-22 14:42:40 +02:00
Aevann1 9f3654cfbe fds 2022-04-21 00:19:43 +02:00
Aevann1 bd6349d448 Revert "RESTORE CACHE"
This reverts commit 3d193357ef.
2022-04-19 22:22:24 +02:00
Aevann1 3d193357ef RESTORE CACHE 2022-04-19 22:21:47 +02:00
Aevann1 7e033d25b0 dfs 2022-04-19 20:19:43 +02:00
Aevann1 f3743d717d fds 2022-04-18 23:11:30 +02:00
Aevann1 0e74b54424 fsd 2022-04-18 20:25:14 +02:00
Aevann1 8d268268f1 fds 2022-04-18 19:20:10 +02:00
Aevann1 004795d51f fds 2022-04-18 19:02:20 +02:00
Aevann1 56377f5bab fsd 2022-04-18 18:09:44 +02:00
Aevann1 d7fa942d85 fds 2022-04-18 18:01:03 +02:00
Aevann1 0f05a76522 fds 2022-04-18 00:16:02 +02:00
Aevann1 8214e2c6f9 fds 2022-04-18 00:13:37 +02:00
Aevann1 10984dc92c fds 2022-04-17 22:29:14 +02:00
Aevann1 264528c72c cxcxc 2022-04-17 22:28:11 +02:00
Aevann1 456b9af099 fds 2022-04-17 22:26:45 +02:00
Aevann1 2de411fe23 fds 2022-04-17 20:01:18 +02:00
Aevann1 be051766cc fds 2022-04-17 19:54:18 +02:00
Aevann1 252d3df198 gf 2022-04-17 19:51:01 +02:00
Aevann1 15fdefc584 fds 2022-04-17 17:50:14 +02:00
Aevann1 5de173b73d fd 2022-04-17 17:47:56 +02:00
Aevann1 782c58e8c0 fsd 2022-04-17 15:54:22 +02:00
Aevann1 48c0094ae5 fds 2022-04-17 15:43:36 +02:00
Aevann1 2bff85b439 fds 2022-04-17 11:11:19 +02:00
Aevann1 1ffa78bdca fds 2022-04-17 01:07:51 +02:00
Aevann1 0005e0c41b fds 2022-04-17 01:01:33 +02:00
Aevann1 39c374a90d fds 2022-04-17 00:42:12 +02:00
Aevann1 c9883f28c0 fds 2022-04-16 22:29:37 +02:00
Aevann1 2c8fe2adce fds 2022-04-16 22:12:34 +02:00
Aevann1 c6198ffe54 fds 2022-04-16 22:11:19 +02:00
Aevann1 6f6fa51f36 g 2022-04-16 21:15:07 +02:00
Aevann1 6c662e351a fds 2022-04-16 21:14:11 +02:00
Aevann1 777baa68eb fds 2022-04-16 17:50:07 +02:00
Aevann1 2d45a66739 fdsfd 2022-04-16 17:25:17 +02:00
Aevann1 ebaa535725 fsd 2022-04-16 17:14:37 +02:00
Aevann1 ff32a6bee3 fds 2022-04-16 01:10:23 +02:00
Aevann1 7047953ce7 fdsdfs 2022-04-16 00:39:17 +02:00
Aevann1 24c2c52fe4 fds 2022-04-15 18:58:02 +02:00
Aevann1 71bb0385cf fds 2022-04-15 18:57:41 +02:00
Aevann1 0bdfd182d8 fds 2022-04-15 18:53:48 +02:00
Aevann1 99cb01d9fc fdsfds 2022-04-15 18:28:08 +02:00
Aevann1 43006ba440 fds 2022-04-15 17:03:02 +02:00
Aevann1 e11ae7581d fds 2022-04-14 21:50:08 +02:00
Aevann1 b54332b041 fd 2022-04-14 19:41:21 +02:00
Aevann1 923cac0125 fds 2022-04-14 19:40:13 +02:00
Aevann1 9bcc5425d7 fds 2022-04-14 19:24:40 +02:00
Aevann1 ab512b1406 fds 2022-04-14 19:22:37 +02:00
Aevann1 543b9a73cb rfds 2022-04-14 19:20:00 +02:00
Aevann1 396762f799 fsd 2022-04-14 18:48:50 +02:00
Aevann1 c0a0ca0217 fds 2022-04-14 18:46:57 +02:00
bAWario 8c25a48d0c Glowiefied Checkmark (#226)
Co-authored-by: Captain <Captain@PC>
2022-04-14 00:23:46 +02:00
Aevann1 bae617974f fds 2022-04-13 22:20:57 +02:00
Aevann1 36623e6d0b fds 2022-04-13 22:20:55 +02:00
Aevann1 bbd633e8ca fds 2022-04-13 22:07:58 +02:00
Aevann1 154566fb38 fds 2022-04-13 22:01:41 +02:00