Commit graph

13697 commits

Author SHA1 Message Date
DinoInNameOnly
f36a0b88e2 Add RSS Link 2022-10-07 13:56:23 -05:00
DinoInNameOnly
67a83ba0a8 Allow viewing the popup card 2022-10-07 13:53:37 -05:00
Ben Rog-Wilhelm
e6de172dea Add max-width for posts and comment blocks. 2022-09-27 18:43:48 -05:00
Ben Rog-Wilhelm
bf116115e2 Fix: Reporting comments is broken. 2022-09-27 18:43:20 -05:00
Ben Rog-Wilhelm
9939a382a3 Adjust starting color for colored comment bars 2022-09-26 03:32:51 -05:00
Julian Rota
563f3df7c5 Refactor reasons into a shared template 2022-09-26 03:07:48 -05:00
Julian Rota
0e5bf61d73 Add reasons to report screens 2022-09-26 03:07:48 -05:00
Ben Rog-Wilhelm
8cd6548620 Change bar coloring period to 8 and adjust colors. 2022-09-26 03:06:57 -05:00
Michael House
0bfbf17e45 Implemented collapse bar colorization on the server side 2022-09-23 22:11:55 -05:00
DinoInNameOnly
d62b6e8215 Improve search icon 2022-09-22 01:12:27 -05:00
DinoInNameOnly
39a56b52ea Make entire format buttons clickable 2022-09-22 01:11:03 -05:00
christopher morris
37396d42b5 remove email from admins contact form 2022-09-22 01:09:16 -05:00
Galen Huntington
0889d71647 Fix "view more comments" when not sorting by new. 2022-09-22 00:58:52 -05:00
Ben Rog-Wilhelm
41e5f38d19 Add the Support page. 2022-09-19 06:43:42 -05:00
faul_sname
65a68c214c [themotte/rDrama#336] Remove CSS that breaks nested lists in comments 2022-09-17 05:12:25 -05:00
Ben Rog-Wilhelm
a38bc0cb65 Change comment collapse icons to be dark-on-light for improved readability. 2022-09-16 01:07:42 -05:00
Ben Rog-Wilhelm
2aa8a4bc10 Reintroduce the new post guidelines. 2022-09-16 00:59:04 -05:00
Michael House
0a3222bff0 Changed cursor to pointer when mousing over collapse bar 2022-09-15 04:30:13 -05:00
painejohn
99d67e95dc 143: Fix ordered list rendering
The `linefeeds_regex` doubles every newline character. However, when
that happens, it turns tight numbered lists into loose numbered lists.

Context: https://stackoverflow.com/a/43505265

Going with solution proposed by @TLSM since the forum already has
production traffic.
2022-09-13 20:14:50 -05:00
Julian Rota
c16cf799ed Change Android background color from pink to white 2022-09-13 19:45:37 -05:00
Michael House
c4b5fe2913 Added filter for logged out users 2022-09-13 09:43:27 -05:00
TLSM
716f078e81 Fix 'hot' sort intermediate value out-of-bounds.
Fixes #321. Due to the extremely large quantity of comments on a
typical Motte post, 'hot' sorting logic underflowed an intermediate
value. Roughly:

  |(-1 000 000) * (103 [votes] + 1 + 2723 [comments] / 1)| > 2^31

We resolve this by reducing the coefficient from 1e6 to 1e5, which
reduces precision of intermediate calculations somewhat, and by
dividing #comments by 10 rather than 1, which better matches Motte
user behavior regardless: Users comment much more often than vote.
This buys us two orders of magnitude more headroom before out-of-
bounds. Shouldn't be an issue until the CW thread reaches ~200k
comments.
2022-09-12 12:16:54 -05:00
TLSM
ccabc8b881 Change default RSS sort to 'new'. 2022-09-12 12:16:54 -05:00
Ben Rog-Wilhelm
d8462a4a32 Reduce favicon size. 2022-09-12 06:11:24 -05:00
Ben Rog-Wilhelm
a083b4618b Fix: Logo aspect ratio broken. 2022-09-12 06:11:24 -05:00
TLSM
cc70c9e20f Remove conflicting widths set for #logo. 2022-09-12 06:06:43 -05:00
Ben Rog-Wilhelm
c5ed98bad9 Explicitly set width and height for every graphical element. 2022-09-12 00:54:22 -05:00
Ben Rog-Wilhelm
2d31f0e9b5
Switch main site font over to Verdana. 2022-09-11 23:18:29 -05:00
TLSM
2d59865363 Fix #316: restrict access to /badges, remove link. 2022-09-11 23:18:14 -05:00
Ben Rog-Wilhelm
c0e5aad357 Resize headericon file to not waste bandwidth. 2022-09-11 21:06:49 -05:00
Ben Rog-Wilhelm
f39b303533
Remove a not-properly-supported CSS selector causing avatars to be way too large. 2022-09-11 21:06:32 -05:00
Ben Rog-Wilhelm
74cfce4c2e
Update visual theme to be cleaner and less cluttered. 2022-09-11 19:12:23 -05:00
Jack Byrne
1b9f7860c5 nicer and more efficient sanitisation 2022-09-11 06:12:26 -05:00
Jack Byrne
8c7c76feb6 Remove (admittedly funny) rDrama 'troll titles' 2022-09-11 06:12:26 -05:00
Michael House
38e263d931 Added filter to make sure new comments only show up on page refresh 2022-09-11 06:10:58 -05:00
TLSM
256a43527a Fix #303: remove WebP mangling of imgur links. 2022-09-10 08:01:52 -05:00
Michael House
e097dc1e70 De-float navigation menu 2022-09-10 08:01:19 -05:00
TLSM
f5f2c008ad Fix approved filtered comments not notifying.
Moves behavior in api_comment that updates stateful counters and
generates notifications into a function which can also be called
if a filtered comment is approved. Fixes #272.

Incidentally, also fixes #278 by adding another filter to the post
subscribers query during general clean-up/refactoring.

Originally was going to move this function into the Comments model,
since assurances about state (even with side effects) should probably
be made there, but I couldn't find a sane way to untangle the imports.
2022-09-09 23:31:20 -05:00
Jack Byrne
0ec522d897 Remove thumbnail on /post pages for text (self) posts
The thumbnail is ugly and as far as I can tell pointless,
so it should be removed.
2022-09-09 21:28:47 -05:00
TLSM
72b46a6888 Implement client-side collapsed comment memory.
Fixes #290. h/t Suspicious Turtle for initial implementation.
2022-09-09 19:47:26 -05:00
Michael House
9fe2ffd72e
Added comments-per-page config. 2022-09-09 17:11:12 -05:00
JulianRota
93400e531e
Require admin for blocks section 2022-09-09 17:09:13 -05:00
TLSM
48d5e92a25 Densify comment whitespace (low-hanging fruit).
Pending a more thorough comments rework, make comment listings denser:
  - Reduce margin between comments from 28px to 3.5px.
  - Reduce padding around comment text from 10px to 5px.
  - Shrink comment-actions text size by 20% to maintain visual balance.
  - Add some padding to frontpage list entries, because the size of
    voting arrows was holding the size up. Should be about the same
    as before action icons were shrinked.

Also wound up semi-unrelated fixing the comment nesting border-left
colors on TheMotte mobile, coffee, win98, dramblr, and midnight.
All changes tested most thoroughly on those themes.
2022-09-08 05:09:41 -05:00
Ben Rog-Wilhelm
5c6ac1d4b4 Loosen admin requirements for changing usernotes. 2022-09-08 05:08:14 -05:00
iro84657
2767d556ca Clean up handling of "view more comments" button 2022-09-07 17:30:18 -05:00
DinoInNameOnly
4b935addb8 Remove the rule against weaponizing the block feature. #166 2022-09-07 03:31:40 -05:00
Ben Rog-Wilhelm
20fa9ce79f Move a bunch of moderation tools to admin level 2 2022-09-06 18:51:24 -05:00
TLSM
f5c3d944e8 Fix short child comments auto-collapsing.
Bug accidentally introduced with 70c8a942b6, when a removed clause
in Comment.collapse_for_user was treated as always True, rather than
as always False--which would've removed this entire line, as this
commit does now.

Original intent of the logic was for auto-collapsing game comments
like blackjack and slots that necessarily entailed somewhat spammy
commenting behavior.
2022-09-06 17:51:58 -05:00
TLSM
e0e4c79048 Add secondary navbar for orphaned pages.
Originally motivated by fixing #263 (add a mod list), the root cause
of which was that we had a number of orphaned pages, one being the
admins list.

In the upstream, we moved links to a number of infrequently-accessed
pages to a secondary nav in the sidebar. This commit implements a
similar approach to provide links to the admin list and modlog. To
make the nav less visually unbalanced, Random Post/User were also
moved out of the header.

To provide mobile support, this secondary nav is presented in the
hamburger menu. This also provides a place to link /rules, which
otherwise has no link on mobile (that I can readily find).

Finally, the original intent of providing a mod list motivates some
style changes to admins.html to get rid of visible truescore, make
names appear consistently with names elsewhere, and ensure links to
leaderboard aren't accidentally leaked.
2022-09-06 12:40:20 -05:00
TLSM
e407c29ec7 Fix #267: /comments respects shadowbans, filters.
Resolves root problem of non-admin users seeing comments they shouldn't
by JOINing on the appropriate fields and including them in the WHERE
clause of the query.

In the process, was also able to remove some unperformant queries
that used (potentially extremely long) lists passed to WHERE clauses in
lieu of proper JOINs.
2022-09-06 12:35:22 -05:00