Commit graph

15215 commits

Author SHA1 Message Date
Aevann1
128119a5dc sfd 2022-05-02 20:54:53 +02:00
Aevann1
fbf86d553f tre 2022-05-02 20:50:43 +02:00
TLSM
d60ee252a0
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
5be5528982
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
344df24148
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
aba226b95b sfd\ 2022-05-02 20:07:17 +02:00
Aevann1
23cb88ee06 fgd\ 2022-05-02 07:06:43 +02:00
Aevann1
cbd40daf97 6yutg 2022-05-02 04:11:01 +02:00
Aevann1
6fa44b38f9 sdgf 2022-05-02 04:00:14 +02:00
Aevann1
043e15775c sfd 2022-05-02 03:54:07 +02:00
Aevann1
dbd973f6ca fsd 2022-05-02 03:45:22 +02:00
Aevann1
95be0ba9cb fsd 2022-05-02 03:42:59 +02:00
Aevann1
0a89fe1822 fsd 2022-05-02 03:41:08 +02:00
Aevann1
aa3d53f486 dfs 2022-05-02 03:06:20 +02:00
Aevann1
705af0d8fe sdf 2022-05-02 02:41:00 +02:00
Aevann1
ae586e9c0c sfd 2022-05-02 02:04:25 +02:00
Aevann1
495d6eb0b2 fsd 2022-05-02 02:02:31 +02:00
Aevann1
7951f3ed73 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 02:02:21 +02:00
Aevann1
bd9ff67e74 sdf 2022-05-02 02:02:19 +02:00
Aevann1
9a221f56bd sneed 2022-05-02 00:00:02 +00:00
Aevann1
e410ef491d sdf 2022-05-02 01:58:06 +02:00
Aevann1
fa32d895f6 dfg 2022-05-02 01:55:55 +02:00
Aevann1
dad3584013 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 01:51:49 +02:00
Aevann1
f743de1666 jg 2022-05-02 01:51:47 +02:00
Aevann1
86e859d13f sneed 2022-05-01 23:00:01 +00:00
Aevann1
777971c378 sfd 2022-05-02 00:59:28 +02:00
Aevann1
7c661bb69b fsd 2022-05-02 00:59:08 +02:00
Aevann1
9e656a8e73 gfd 2022-05-02 00:56:19 +02:00
Aevann1
1e13924042 sdf 2022-05-02 00:28:51 +02:00
Aevann1
347684926b sfd 2022-05-01 23:48:53 +02:00
Aevann1
709a7fc4b5 sfd 2022-05-01 23:44:38 +02:00
outruncolors
de062c025d
Added doubledown and insurance functionality (#235)
* Added doubledown functionality

* Add insurance
2022-05-01 20:24:01 +02:00
float-trip
5beb5a2411
fix comment previews for pat emojis (#233) 2022-05-01 20:23:02 +02:00
Aevann1
1bf86d2288 fds 2022-05-01 02:54:17 +02:00
Aevann1
240b451962 fsd 2022-05-01 02:53:24 +02:00
Aevann1
3ec73842fd sneed 2022-04-29 20:00:02 +00:00
Aevann1
f6b412e931 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-04-29 21:19:56 +02:00
Aevann1
2ca3c4c71c dfs 2022-04-29 21:19:54 +02:00
Aevann1
3080d39b0c sneed 2022-04-29 17:00:02 +00:00
Aevann1
c44022ff23 sneed 2022-04-29 16:00:02 +00:00
Aevann1
7cda1f203b sfd 2022-04-29 17:58:37 +02:00
Aevann1
4cf9a92d14 sfd 2022-04-29 17:53:27 +02:00
Aevann1
5d8434b95f fds 2022-04-29 17:22:31 +02:00
Aevann1
ef95ab85dd fsd 2022-04-29 17:19:50 +02:00
Aevann1
70a31aa9cb sfd 2022-04-29 17:17:14 +02:00
Aevann1
235349652b fds 2022-04-29 16:52:00 +02:00
Aevann1
af0e20c945 sfd 2022-04-29 16:48:13 +02:00
Aevann1
65716a84d0 fds 2022-04-29 16:47:34 +02:00
Aevann1
2c66f596fd fds 2022-04-29 16:47:03 +02:00
Aevann1
920de902e8 sdf 2022-04-29 16:44:21 +02:00