Commit graph

1128 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
1ee9c1bfa7
Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
iro84657
193ff08a3d Remove special cases based on request.host 2022-05-09 01:40:09 -04:00
Michael House
e9d6bb151e Removing reliance on rDrama assets 2022-05-03 22:10:41 -05: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
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
709a7fc4b5 sfd 2022-05-01 23:44:38 +02:00
Aevann1
76c72d42b2 ti 2022-04-25 23:41:46 +02:00
Aevann1
4f7e142238 sdf 2022-04-24 22:52:10 +02:00
Aevann1
064e4c6950 fdssfd 2022-04-22 22:02:47 +02:00
Aevann1
0f84e6033e fds 2022-04-18 19:20:10 +02:00
Aevann1
db66ab232f fds 2022-04-16 21:14:11 +02:00
Aevann1
37b31ffdb7 fds 2022-04-16 17:50:07 +02:00
Aevann1
42f70bc64e fdsfds 2022-04-15 18:28:08 +02:00
bAWario
3d850953da
Glowiefied Checkmark (#226)
Co-authored-by: Captain <Captain@PC>
2022-04-14 00:23:46 +02:00
Aevann1
aa5d0e074b fd 2022-04-13 03:12:38 +02:00
Aevann1
33be7b6380 sfd 2022-04-13 02:10:48 +02:00
Aevann1
efb57073e6 fds 2022-04-10 20:06:36 +02:00
Aevann1
4f5b8eba28 fsd 2022-04-10 19:46:24 +02:00
Aevann1
631c0bdc97 gfd 2022-04-10 01:41:36 +02:00
Aevann1
d0275e6353 g 2022-04-09 20:26:10 +02:00
Aevann1
b6695ec6e8 fds 2022-04-09 20:09:33 +02:00
Aevann1
6cfa24b192 g 2022-04-09 20:01:36 +02:00
Aevann1
7bc736d663 fds 2022-04-09 19:51:37 +02:00
Aevann1
40787d47f5 gf 2022-04-09 19:32:55 +02:00
Aevann1
095eef3ae4 ds 2022-04-09 18:42:23 +02:00
Aevann1
f3e482c2eb hgf 2022-04-07 02:21:38 +02:00
Aevann1
4ce41cd4dc gdffds 2022-04-07 02:08:17 +02:00
Aevann1
72e35b06dd fsd 2022-04-07 01:03:18 +02:00
Aevann1
46dd5ccd6a fg 2022-04-06 23:01:32 +02:00
Aevann1
639f1daf6d fds 2022-04-06 21:33:42 +02:00
Aevann1
92f2937f0f gd 2022-04-05 21:51:10 +02:00
Aevann1
399b02ff83 sfd 2022-04-05 21:48:46 +02:00
Aevann1
237e02e1e6 fds 2022-04-05 21:47:48 +02:00
Aevann1
dc28e6da8d dfs 2022-04-05 20:06:24 +02:00
Aevann1
bf47941170 fds 2022-04-05 19:27:13 +02:00
Aevann1
d0faa59279 fds 2022-04-05 18:02:24 +02:00
Aevann1
94d1182cb9 fsd 2022-04-05 17:04:15 +02:00
Aevann1
0c0eaac36d sfd 2022-04-05 15:55:32 +02:00
Aevann1
30ac8ae1b8 fds 2022-04-05 15:26:53 +02:00
Aevann1
04fa4ac451 fsd 2022-04-04 02:42:20 +02:00
Aevann1
a552455ea1 fsd 2022-04-03 22:16:54 +02:00
Aevann1
38a6ab7906 fds 2022-04-03 17:47:53 +02:00
Aevann1
36eda0edf8 fsd 2022-04-02 18:54:27 +02:00
Aevann1
0bb2b99dd1 sdf 2022-04-02 17:26:13 +02:00
Aevann1
1fe56970b6 gd 2022-03-31 21:34:04 +02:00
Aevann1
d5f294db77 gdfg 2022-03-31 18:28:53 +02:00
Aevann1
c0d8490df3 fds 2022-03-31 17:00:57 +02:00
Aevann1
c50cb5ca30 fsd 2022-03-31 16:25:49 +02:00
Aevann1
7940782e61 df 2022-03-29 19:32:36 +02:00
Aevann1
33c5e483ae bbbbbbbbbbbbb 2022-03-27 15:39:21 +02:00