Commit graph

86 commits

Author SHA1 Message Date
justcool393
92bd7d50fa
performance: add performance monitor 2023-03-14 13:31:04 -05:00
justcool393
fb65cf0416
privatize user CSS (fixes #273)
implements issue comment: https://github.com/themotte/rDrama/issues/273#issuecomment-1240543608
2023-02-25 04:51:06 -06:00
justcool393
bfe8fb70f6
support infinite length posts and comments (fixes #229) 2023-02-25 04:18:30 -06:00
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
c5cea4f8fa add SORTS_COMMENTS 2023-02-16 23:43:08 -06:00
justcool393
ba96decb9b Jinja2: add SORTS_COMMON and SORTS_ALL 2023-02-16 18:27:16 -06:00
Snakes
84e5c7c651
Merge branch 'frost' into feature-award-feature-flag 2023-02-11 23:41:41 -05:00
justcool393
f8f55be8b0
constantify render depth limit 2023-02-10 13:54:49 -06:00
justcool393
379c7d5144 add features to templates 🤤 2023-02-09 10:37:57 -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
justcool393
0ea72e3778
Debug: Add button in admin panel to login to other accounts (#437) 2023-01-08 03:16:02 -06:00
Ben Rog-Wilhelm
e43db0535d Volunteer Janitor: Initial hooks. 2022-12-01 18:53:24 -08:00
justcool393
2067875c6a themes: remove /r/Drama theme ("classic" and "classic_dark") 2022-11-21 06:13:12 -06:00
TLSM
8949b57609 Remove unused ADMINISTRATORS content upload posts.
The ADMINISTRATORS list contained hardcoded post IDs (in the 30000s)
intended to be used for uploading graphical assets onto a production
instance of the site. This functionality is not needed here, and the
special logic to bypass awards when commenting on those posts was
largely removed in 9d4195a89f.
2022-11-09 20:37:04 -06:00
TLSM
9de6f20dea Remove vestigial user ID special cases. 2022-11-09 20:37:04 -06:00
TLSM
010c56a35e Implement #380: remove signatures feature. 2022-11-09 20:37:04 -06:00
TLSM
c85cd469a1 Move post/comment ID boilerplate inside getters.
Borrows code from the upstream which has been working in production
reliably for ~months. Also, most of it was literally copy-pasted,
and the casted ID values aren't used later in the route functions.
2022-11-09 20:37:04 -06:00
TLSM
6f3b995455
assetcache: add interface for non-Jinja consumers.
Rather than generating the URL in helpers/jinja2.py, we move the logic
to helpers/assetcache.py because there are consumers of asset URLs
in Python code (for better or for worse).
2022-08-30 16:23:09 -04:00
TLSM
fcb51c09d3
Implement assetcache module with asset hashing.
Provides a module `assetcache` to support automatic cachebusting of
static web assets, rather than the current approach of incrementing
a version number.

On module load, it walks the file/assets/ dir, computes a CRC32 of
each asset, and provides those hashes via `assetcache_get(path)` at
runtime. The primary consumer of hashes at present is the new `asset`
filter for Jinja2, which accepts a relative asset path and returns the
full path, with cache busting, suitable for final use in the template.

Ex: `{{ 'css/main.css' | asset }}`
2022-08-30 16:00:24 -04:00
Ben Rog-Wilhelm
ade79962b5 Include another section that somehow got lost 2022-08-07 10:19:26 -05:00
Ben Rog-Wilhelm
800ae8d2dc Split SITE_NAME into computer-readable SITE_ID and human-readable SITE_TITLE. 2022-07-31 18:53:18 -05:00
FatherInire
fcba426009
Remove some gimmicky r/drama features.
Co-authored-by: Inire <>
2022-05-21 21:43:00 -05:00
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
Aevann1
6890aae6b9 fd 2022-04-07 00:54:09 +02:00
Aevann1
10d6c5b201 gf 2022-03-19 13:52:31 +02:00
Aevann1
200c2461b8 right 2022-03-09 03:44:53 +02:00
Aevann1
c16174ae18 bcv 2022-02-18 14:01:24 +02:00
Aevann1
00781bf352 bcv 2022-02-10 23:45:45 +02:00
Aevann1
0a313c5aa5 dude subdramas lmao 2022-02-10 22:35:16 +02:00
Aevann1
2aaa54df59 vb 2022-02-07 17:07:46 +02:00
Aevann1
f8533c0b06 fsd 2022-02-06 12:45:17 +02:00
Aevann1
3ff29602d3 crisis 2022-02-05 23:09:17 +02:00
Aevann1
0b7f586721 fsd 2022-02-05 20:47:21 +02:00
Aevann1
b3a9da6103 fds\ 2022-02-05 13:31:05 +02:00
Aevann1
80a888e752 fds 2022-01-28 23:06:31 +02:00
Aevann1
587e945d6e vcx 2022-01-28 22:55:59 +02:00
Aevann1
de814e7581 fds 2022-01-28 21:27:16 +02:00
Aevann1
68aff92604 vcx 2022-01-28 20:28:18 +02:00
Aevann1
a070da8f83 cvxvxc 2022-01-21 22:32:23 +02:00
Aevann1
6b9ff48dda retarded lives matter 2022-01-21 21:55:42 +02:00
Aevann1
48aad3e93c fds 2022-01-19 12:07:11 +02:00
Aevann1
694dfca0a4 fds 2022-01-19 11:07:16 +02:00
Aevann1
613219d826 big one 2022-01-18 13:19:32 +02:00
Aevann1
9c6ff97e4d bbbb 2022-01-15 08:01:39 +02:00
Aevann1
207507fc8e b 2022-01-14 14:04:35 +02:00
Aevann1
4bae627505 bv 2022-01-12 05:16:49 +02:00
Aevann1
b10ef72021 bbbb 2022-01-12 01:37:04 +02:00
Aevann1
4c5a757c49 bb 2022-01-12 00:22:27 +02:00
Aevann1
5c2eac7ddb bb 2022-01-11 22:42:35 +02:00
Aevann1
d29014a3a6 fsfs 2021-12-20 02:27:25 +02:00