Commit graph

3561 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
1ee9c1bfa7
Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
Michael House
67d5db425f Fixed a type in routes/front.py:180 2022-05-09 04:54:00 -05:00
iro84657
193ff08a3d Remove special cases based on request.host 2022-05-09 01:40:09 -04:00
iro84657
4341e2d980 Remove special cases based on SITE 2022-05-09 01:40:09 -04:00
iro84657
71743a3bfc Remove special cases based on SITE_NAME 2022-05-09 01:40:09 -04:00
iro84657
0bab69947a
Remove hot posts button from mobile interface (#38)
This commit also cleans up some remnants of the previous default sort
orders.
2022-05-08 23:21:43 -05:00
Ben Rog-Wilhelm
edfc35bce2
Merge pull request #35 from 64617/frost
Default all sorts to new
2022-05-08 22:18:50 -05:00
Ben Rog-Wilhelm
761d1affab
Merge pull request #32 from themotte/remove-marsey-bot-autocomments
Remove automatic marsey comments
2022-05-08 21:58:57 -05:00
64617
c30de9335e
Merge branch 'themotte:frost' into frost 2022-05-09 02:52:59 +00:00
64617
7c18978c54 default comment sorts to new 2022-05-09 10:51:27 +08:00
Julian Rota
21f867a6ae Remove automatic marsey comments 2022-05-08 19:20:53 -04:00
Michael House
d25d5aa70e Created rules page and updated sidebar 2022-05-08 07:29:01 -05:00
Michael House
e9d6bb151e Removing reliance on rDrama assets 2022-05-03 22:10:41 -05:00
Aevann1
8536d93c87 fhg 2022-05-02 21:32:15 +02:00
Aevann1
eb68ac3907 fsd 2022-05-02 21:30:12 +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
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
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
0a89fe1822 fsd 2022-05-02 03:41:08 +02: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
Aevann1
1bf86d2288 fds 2022-05-01 02:54:17 +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
5d8434b95f fds 2022-04-29 17:22:31 +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
Aevann1
8345cc02e0 fsd 2022-04-29 16:43:21 +02:00
Aevann1
4393a14ccc fds 2022-04-29 16:41:35 +02:00
Aevann1
3c568ca860 fsd 2022-04-29 16:39:56 +02:00
Aevann1
9895ca2110 fsd 2022-04-29 16:02:52 +02:00
Aevann1
4536f4e1d4 fsd 2022-04-29 02:02:00 +02:00
Aevann1
99755ce4c6 sfd 2022-04-28 03:02:37 +02:00
Aevann1
a3832f4c5b fds 2022-04-28 02:04:01 +02:00