justcool393
1574c46d0a
modmail: constantify user ID and fix bug where users can bypass modmail route checks
...
the random c.sentto == 2 magic numbers in the code is... pretty
unmaintainable and unless you were aware of who "2" was, it's hard to
know what's going on.
in addition, we force modmail to go through the modmail path instead of
letting users bypass validation checks.
2023-02-17 14:41:41 -06:00
justcool393
6c2876ea6b
no t
2023-02-17 01:00:38 -06:00
justcool393
009918f954
Remove <pre></pre> bs
2023-02-17 00:44:21 -06:00
justcool393
7e93ea6361
fix indentation and logic error
2023-02-17 00:40:17 -06:00
justcool393
e8d2f2bce2
missing %endif%
2023-02-17 00:33:36 -06:00
justcool393
d8c12ff794
translate transformY
2023-02-17 00:30:08 -06:00
justcool393
9ca1fa6935
ccmode
2023-02-17 00:23:57 -06:00
justcool393
97359602b4
fix braindead mistake
2023-02-16 23:59:35 -06:00
justcool393
22741fce1f
remove unnecessary classes and ids
2023-02-16 23:56:23 -06:00
justcool393
f8ed83a696
explicit context passing
2023-02-16 23:50:48 -06:00
justcool393
c5cea4f8fa
add SORTS_COMMENTS
2023-02-16 23:43:08 -06:00
justcool393
95d68d013d
Remove dead code
2023-02-16 23:11:14 -06:00
justcool393
9453a5d074
Fix search page
2023-02-16 18:54:34 -06:00
justcool393
d728a16a19
Fix :pepodroll:
2023-02-16 18:30:03 -06:00
justcool393
ba96decb9b
Jinja2: add SORTS_COMMON and SORTS_ALL
2023-02-16 18:27:16 -06:00
justcool393
384b4fbd22
. -> ~
2023-02-16 18:25:18 -06:00
justcool393
5f73302b28
Sorting: add comments sort for comments and constantify sorts
2023-02-16 17:52:43 -06:00
Snakes
84e5c7c651
Merge branch 'frost' into feature-award-feature-flag
2023-02-11 23:41:41 -05:00
TLSM
9ade35d22f
Eager load GET /comments ("All Comments")
...
Before vs after:
GET /comments
|----------|--------|--------|--------|--------|--------|------------|
| Database | SELECT | INSERT | UPDATE | DELETE | Totals | Duplicates |
|----------|--------|--------|--------|--------|--------|------------|
| default | 167 | 0 | 0 | 0 | 167 | 154 |
|----------|--------|--------|--------|--------|--------|------------|
GET /comments
|----------|--------|--------|--------|--------|--------|------------|
| Database | SELECT | INSERT | UPDATE | DELETE | Totals | Duplicates |
|----------|--------|--------|--------|--------|--------|------------|
| default | 13 | 0 | 0 | 0 | 13 | 0 |
|----------|--------|--------|--------|--------|--------|------------|
2023-02-10 14:07:37 -06:00
justcool393
5d6641c890
remove Comment.print() and Submission.print() functions
...
these functions i don't believe exist upstream and i guess were to
diagnose an issue with author_ids not being saved properly. anyway not
really useful now as if an author_id doesn't exist, some major db
corruption has prolly already happened.
2023-02-10 14:01:28 -06:00
justcool393
1817008a91
remove profile songs (ref #470 ) ( #499 )
...
* removes profile songs (ref #470 )
* Remove ffmpeg, remaining song subsystem
- Remove references to User.song in userpage* templates
- Generate migration to drop column
- Remove ffmpeg dependency in Docker
* remove python 2 era __future__ import
---------
Co-authored-by: TLSM <duolsm@outlook.com>
2023-02-10 13:56:04 -06:00
justcool393
f8f55be8b0
constantify render depth limit
2023-02-10 13:54:49 -06:00
justcool393
4cecdef35a
captcha: add captcha to contact page ( fixes #482 )
2023-02-09 10:41:15 -06:00
justcool393
fc81ed11bf
awards: don't load JS if disabled
2023-02-09 10:16:15 -06:00
justcool393
a863b9c957
awards: remove vestiges of awards that don't exist anymore
2023-02-08 18:22:32 -06:00
justcool393
026a9efe2b
user/submission/comment: avoid queries if awards are disabled
2023-02-08 17:54:12 -06:00
TLSM
946ee6291d
Hide flair if should_hide_username in comments
...
Fixes #497 .
2023-02-08 14:49:27 -06:00
justcool393
97c9300a6f
volunteer: hide usernames and scores in volunteer (ref #454 )
2023-02-07 07:04:24 -06:00
TLSM
175f9c1d22
Cleanup sidebar sizing style kludges
...
The 15-line <pre> block at the bottom of the sidebar was a fix for
mobile hamburger menu behavior on upstream, where the long mobile
sidebar would be covered by the bottom navigation drawer.
In-place replacement would be `margin-bottom: 15em`, but it's not
actually necessary for the sidebar as used on TheMotte, and it adds
an unsightly block of whitespace to the bottom of the homepage.
Also the `style` attribute width was related to `GET /sidebar`
behavior (sidebar.html), which is unused on TheMotte, having been
replaced in the signup template with a link to `/rules`.
2023-02-04 04:13:18 -06:00
TLSM
7a9a3f7c99
Randomize sidebar recommendation order ( #483 )
...
Fixes #483 . Implement a Jinja template filter to shuffle a sequence
(which surprisingly doesn't already exist) and shuffle the relevant
lists in the sidebar.
2023-02-04 04:13:18 -06:00
Ben Rog-Wilhelm
50b098f740
Add Femradebates to the link list.
2023-02-04 01:35:09 -06:00
faul_sname
b75c93e600
Merge remote-tracking branch 'origin/frost' into themotte-issue-451
2023-01-12 22:09:07 -08:00
justcool393
712a0ad631
awards: remove tilt award
2023-01-08 19:38:20 -06:00
justcool393
0ea72e3778
Debug: Add button in admin panel to login to other accounts ( #437 )
2023-01-08 03:16:02 -06:00
faul_sname
434542b586
[ themotte/rDrama#451 ] Show the number of descendants on the "More comments" button
2023-01-06 18:27:23 -08:00
Ben Rog-Wilhelm
0454a64020
Fix: Janitor rule page incorrectly links to localhost.
2022-12-18 12:53:01 -08:00
justcool393
a213396854
Solve blocking weaponization.
...
* allow anyone to reply to their blockers
* revert userblocks thing
* get rid of unnecessary template
* make blocking page accurate
* comment author things
* fix prev commit
* fix block page
* comma splice
Co-authored-by: Snakes <104547575+TLSM@users.noreply.github.com>
2022-12-17 11:11:51 -06:00
justcool393
0c632d73b7
Rework error system a bit to remove a bunch of duplicated code ( #434 )
2022-12-01 20:58:27 -06:00
Ben Rog-Wilhelm
08602b4279
Volunteer Janitor: Minor cleanups.
2022-12-01 18:53:24 -08:00
Ben Rog-Wilhelm
8fd9177711
Volunteer Janitor: Minor phrasing tweak.
2022-12-01 18:53:24 -08:00
Ben Rog-Wilhelm
0f74f6a4e2
Volunteer Janitor: Warn on page exit.
2022-12-01 18:53:24 -08:00
Ben Rog-Wilhelm
f02ab5d27b
Volunteer Janitor: Visual design for Work page.
2022-12-01 18:53:24 -08:00
Ben Rog-Wilhelm
e75634f40a
Volunteer Janitor: Visual design for Submit page.
2022-12-01 18:53:24 -08:00
Ben Rog-Wilhelm
78cced0c37
Volunteer Janitor: Visual design for Teaser page.
2022-12-01 18:53:24 -08:00
Ben Rog-Wilhelm
0f91324603
Volunteer Janitor: Response recording.
2022-12-01 18:53:24 -08:00
Ben Rog-Wilhelm
03b323c7a1
Volunteer Janitor: Initial duty acquisition.
2022-12-01 18:53:24 -08:00
Ben Rog-Wilhelm
e43db0535d
Volunteer Janitor: Initial hooks.
2022-12-01 18:53:24 -08:00
justcool393
6b832aba99
admin: remove unused admin pages
2022-11-21 13:06:29 -06:00
justcool393
2067875c6a
themes: remove /r/Drama theme ("classic" and "classic_dark")
2022-11-21 06:13:12 -06:00
Ben Rog-Wilhelm
0db174b90b
Fix: An unfortunately-placed linebreak.
2022-11-21 06:10:10 -06:00