Commit graph

15191 commits

Author SHA1 Message Date
64617
19d54d8521 default user settings to sort all posts && comments by new 2022-05-09 10:59:14 +08:00
64617
0a37be8020 use default value instead of editing kwargs 2022-05-09 10:58:22 +08:00
64617
7c18978c54 default comment sorts to new 2022-05-09 10:51:27 +08:00
Ben Rog-Wilhelm
5b09b72206
Merge pull request #8 from themotte/removing_unused_assets
Removing unused assets
2022-05-04 22:50:17 -05:00
Michael House
74cdfce186 Removed or moved some images that are not relevant to TheMotte 2022-05-04 05:08:48 -05:00
Michael House
e9d6bb151e Removing reliance on rDrama assets 2022-05-03 22:10:41 -05:00
Michael House
e6df489d33
Merge pull request #5 from themotte/fixing_header_image
Set static image for banner
2022-05-03 21:53:15 -05:00
Michael House
a18b2f134e Set static image for banner 2022-05-03 21:29:33 -05:00
Michael House
d827372d62
Merge pull request #3 from themotte/fixing_dev_env
Fixed some bugs likely caused by using a newer version of docker-compose
2022-05-02 21:39:52 -05:00
Michael House
37765f8449 Fixed some bugs likely caused by using a newer version of docker-compose 2022-05-02 21:01:35 -05:00
Aevann1
e8f0d84cc7 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 23:30:06 +02:00
Aevann1
9a793883c1 dsa 2022-05-02 23:30:03 +02:00
Aevann1
a0395a86dd fgMerge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 21:13:44 +00:00
Aevann1
b74a2b9c84 sneed 2022-05-02 21:00:01 +00:00
Aevann1
8921415b65 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 22:02:24 +02:00
Aevann1
7d872bd6ef sfd 2022-05-02 22:02:22 +02:00
TLSM
bdda95a582
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
307c7afc4d dfg 2022-05-02 21:39:18 +02:00
gooseman
2d6fee44fe
fix table thing for carp 2022-05-02 15:36:43 -04:00
Aevann1
8536d93c87 fhg 2022-05-02 21:32:15 +02:00
Aevann1
737d3a80a8 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 21:30:15 +02:00
Aevann1
eb68ac3907 fsd 2022-05-02 21:30:12 +02:00
carpathianflorist
0171d965a1
Update journoid_banner.html 2022-05-02 15:13:10 -04:00
Aevann1
8c77b36c33 sdf 2022-05-02 21:11:03 +02:00
Aevann1
d124c14a78 dfg 2022-05-02 21:10:49 +02:00
Aevann1
9057d39729 sdf 2022-05-02 20:56:10 +02:00
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