forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

12098 Commits (1b86af8def8785d37779a9ac616eee57abf25ede)

Author SHA1 Message Date
Aevann1 bb33eaf54b sfd 2022-05-02 22:02:22 +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
Aevann1 a6f6e64246 fhg 2022-05-02 21:32:15 +02:00
Aevann1 a8b74fe328 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 21:30:15 +02:00
Aevann1 df90e71f20 fsd 2022-05-02 21:30:12 +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 f9a142a889 sfd 2022-05-02 20:54:53 +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 60481a175b sfd\ 2022-05-02 20:07:17 +02:00
Aevann1 5eb6491e25 fgd\ 2022-05-02 07:06:43 +02:00
Aevann1 4d7e79bef3 6yutg 2022-05-02 04:11:01 +02:00
Aevann1 c636f08732 sdgf 2022-05-02 04:00:14 +02:00
Aevann1 5a7d019cdd sfd 2022-05-02 03:54:07 +02:00
Aevann1 9eeb214a24 fsd 2022-05-02 03:45:22 +02:00
Aevann1 ccfbbba09a fsd 2022-05-02 03:42:59 +02:00
Aevann1 f59286b202 fsd 2022-05-02 03:41:08 +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 56ea11ea28 sfd 2022-05-02 00:59:28 +02:00
Aevann1 0d08156cf9 fsd 2022-05-02 00:59:08 +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
outruncolors 0ff7bdc28a Added doubledown and insurance functionality (#235)
* Added doubledown functionality

* Add insurance
2022-05-01 20:24:01 +02:00
Aevann1 039c121055 fds 2022-05-01 02:54:17 +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 aefb322952 fds 2022-04-29 17:22:31 +02:00
Aevann1 a6b26ece67 fsd 2022-04-29 17:19:50 +02:00
Aevann1 e73fcbd56a sfd 2022-04-29 17:17:14 +02:00
Aevann1 2d4cf226e4 fds 2022-04-29 16:52:00 +02:00
Aevann1 b7ba495555 sfd 2022-04-29 16:48:13 +02:00
Aevann1 08ed7b044b fds 2022-04-29 16:47:34 +02:00
Aevann1 4ee8d15e2a fds 2022-04-29 16:47:03 +02:00
Aevann1 6856eb0dd0 sdf 2022-04-29 16:44:21 +02:00
Aevann1 49751bc6d8 fsd 2022-04-29 16:43:21 +02:00
Aevann1 9353f6507c fds 2022-04-29 16:41:35 +02:00
Aevann1 9ba2593f4f fsd 2022-04-29 16:39:56 +02:00
Aevann1 01e55c142a fsd 2022-04-29 16:28:13 +02:00
Aevann1 8d732b8f7b fsd 2022-04-29 16:02:52 +02:00
Aevann1 ebba5fd9b3 gdf 2022-04-29 15:36:33 +02:00
Aevann1 e5014b4cf4 fsd 2022-04-29 02:02:00 +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 d0116ff2f8 sfd 2022-04-28 01:16:24 +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 9499cde2aa fsd 2022-04-28 00:38:03 +02:00
Aevann1 952fdec513 fds 2022-04-27 18:28:00 +02:00
Aevann1 47978226e1 df 2022-04-27 17:15:41 +02:00
Aevann1 8296a580d1 xcv 2022-04-27 17:09:37 +02:00
Aevann1 583765f259 czx 2022-04-27 17:03:25 +02:00
float-trip d85951d912 add :@userpat: emojis (#231)
* refactor emoji formatting

* add user patting
2022-04-27 16:46:47 +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 43751ccde2 vdx 2022-04-26 16:18:57 +02:00
Aevann1 5afa0c0d2a fsd 2022-04-26 16:15:06 +02:00
Aevann1 5a49be1d47 fsd 2022-04-26 15:40:37 +02:00
Aevann1 957c97f2c7 sfd 2022-04-26 15:33:39 +02:00
Aevann1 79c6630285 gf 2022-04-26 15:28:35 +02:00
Aevann1 2f04364f5b fd 2022-04-26 15:15:01 +02:00
Aevann1 ab83d60730 fds 2022-04-26 15:01:05 +02:00
Aevann1 a11c37f7be fd 2022-04-26 14:59:28 +02:00
Aevann1 5c1f253e0b dfs 2022-04-26 02:38:52 +02:00
Aevann1 f9ea51611f fds 2022-04-26 02:36:03 +02:00
Aevann1 43366f4a28 fds 2022-04-26 02:26:27 +02:00
Aevann1 adf6d4bfee sdf 2022-04-26 01:03:07 +02:00
Aevann1 ccff08057a sfd 2022-04-26 01:00:55 +02:00
Aevann1 a895faefe5 fsd 2022-04-26 00:48:28 +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 5c21180705 Revert "vxc"
This reverts commit 4d0c7ba456.
2022-04-25 23:59:12 +02:00