Commit graph

7750 commits

Author SHA1 Message Date
Aevann1
d124c14a78 dfg 2022-05-02 21:10:49 +02:00
Aevann1
9057d39729 sdf 2022-05-02 20:56:10 +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
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
bd9ff67e74 sdf 2022-05-02 02:02:19 +02:00
Aevann1
e410ef491d sdf 2022-05-02 01:58:06 +02:00
Aevann1
fa32d895f6 dfg 2022-05-02 01:55:55 +02:00
Aevann1
f743de1666 jg 2022-05-02 01:51:47 +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
Aevann1
240b451962 fsd 2022-05-01 02:53:24 +02:00
Aevann1
2ca3c4c71c dfs 2022-04-29 21:19:54 +02:00
Aevann1
7cda1f203b sfd 2022-04-29 17:58:37 +02:00
Aevann1
70a31aa9cb sfd 2022-04-29 17:17:14 +02:00
Aevann1
d6936395b7 fsd 2022-04-29 16:28:13 +02:00
Aevann1
314d0dd781 gdf 2022-04-29 15:36:33 +02:00
Aevann1
fcc6397a51 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-04-29 00:03:34 +02:00
Aevann1
a80c04bf30 gfd 2022-04-29 00:03:31 +02:00
TLSM
060e19bfb0
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
a3170d2677 dsf 2022-04-28 03:38:17 +02:00
Aevann1
99755ce4c6 sfd 2022-04-28 03:02:37 +02:00
Aevann1
cb5fcd7a1d dsf 2022-04-28 02:45:49 +02:00
Aevann1
c8724bdae1 fds 2022-04-28 02:44:38 +02:00
Aevann1
259c2dd323 sfd' 2022-04-28 02:37:12 +02:00
Aevann1
a8147f2f03 dg4 2022-04-28 02:13:30 +02:00
Aevann1
a3832f4c5b fds 2022-04-28 02:04:01 +02:00
Aevann1
c37d5b7ef1 fds 2022-04-28 01:09:39 +02:00
Aevann1
28cbee62eb fsd 2022-04-28 00:43:22 +02:00
Aevann1
e378e55dc7 czx 2022-04-27 17:03:25 +02:00
Aevann1
95a0130cc0 fds 2022-04-27 16:29:32 +02:00
gooseman
6526f7534e
make logo not giant lol 2022-04-26 17:25:06 -04:00
Aevann1
35697540af fsd 2022-04-26 15:40:37 +02:00
Aevann1
8f665c6780 gf 2022-04-26 15:28:35 +02:00
Aevann1
3189fedf89 sfd 2022-04-26 00:45:05 +02:00
Aevann1
4baa34cb0a vcx 2022-04-26 00:43:59 +02:00
Aevann1
37908005fa vxc 2022-04-26 00:41:34 +02:00
Aevann1
7c08718dca fsd 2022-04-26 00:36:47 +02:00
Aevann1
6bb48bbcef fsd 2022-04-26 00:35:27 +02:00
Aevann1
79c14aad1d nv 2022-04-26 00:29:35 +02:00
Aevann1
269a402309 fsd 2022-04-26 00:28:20 +02:00
Aevann1
76c72d42b2 ti 2022-04-25 23:41:46 +02:00
Aevann1
93c1a889fd vxc 2022-04-25 22:07:03 +02:00