Commit graph

758 commits

Author SHA1 Message Date
TLSM
3f360bb457 Remove special cases for unused awards.
Removes the following awards / fields on User:
 - flairlock
 - progressivestack
 - bird
 - longpost (pizzashill)
 - marseyawarded
 - rehab
 - deflector
 - mute
 - unmutable
 - eye (All-Seeing Eye)
 - alt (Alt-Seeing Eye)

Primarily motivated by starting to remove some un-Mottelike cruft
from core commenting/posting routes. Cleared out other inapplicable
awards while in the process.
2022-11-09 20:37:04 -06:00
Ben Rog-Wilhelm
120e299f46 Update CSP to allow Google Analytics. 2022-10-19 06:29:02 -05:00
Ben Rog-Wilhelm
877b572c66 Add Google Analytics (hopefully correctly) 2022-10-15 11:33:28 -05:00
DinoInNameOnly
39a56b52ea Make entire format buttons clickable 2022-09-22 01:11:03 -05:00
TLSM
a35697e55e
Replace nearly all ?v= cachebusts with assetcache.
Using the new assetcache module, we replace (almost) all instances
of `?v=` cachebusting query parameters in Python and in Jinja templates.
The primary exceptions were: user site backgrounds, and some
infrequently changed graphics referenced literally from .js files.
2022-08-30 17:02:46 -04:00
Ben Rog-Wilhelm
74a21234b5
Make the Comments indicator into a link. 2022-08-27 06:33:05 -05:00
Ben Rog-Wilhelm
210d4d3bc1 Bump cachebusters 2022-08-22 22:14:21 -05:00
Ben Rog-Wilhelm
13da98bd08 Add close icon to the install-app popup. 2022-08-19 04:53:02 -05:00
Jack Byrne
6b53867ae1 Post validation: better length validation for post submissions 2022-08-19 04:19:41 -05:00
TLSM
a95f47339d
Cachebust main.css. 2022-08-17 01:55:44 -04:00
painejohn
cbcc2aac6f
139: Disabled multimedia embedding
This change disables multimedia embedding:

- In comments and comments replies.
- In new submissions.
- In comment & submission preview

And it's all toggle-able via an envvar, except for the JS bits,
but I linked those to the github issue, so should be easy to find
in the future.

The way it works is:

- removes markdown image/video syntax,
  eg. `![](https://example.org/someimage.jpg)` into ``
- changes link text into anchors, eg.
  `https://example.org/someimage.jpg` into
  `[https://example.org/someimage.jpg](https://example.org/someimage.jpg)`
- removes html img/video/audio tags, eg.
  `<img href="https://example.org/someimage.jpg" />` into ``
- when embedding gifs via the giphy modal in "new submission", it will
  insert only an anchor to the gif
- when attaching an image, it will upload the image, then add only an
  anchor to the post/comment body

I tested this manually, but not sure if I got all the test cases. What I
checked was:

- create comment w/ image/video/audio media using markdown -> success
- create comment reply w/ image/video/audio media using markdown ->
  success
- create comment w/ link to img/imgur/youtube/audio -> success
- create comment w/ attachment -> success
- create comment reply w/ attachment -> success
- create comment w/ img/video tag -> success
- create comment reply w/ image/video tag -> success
- create post submission w/ image/video/media using markdown -> success
- create post submission w/ link to img/imgur/youtube/audio -> success
- create post submission w/ attachment -> success
- create post submission w/ giphy gif -> success

Also, updated the formatting page.

Co-authored-by: Ben Rog-Wilhelm <zorba-github@pavlovian.net>
2022-08-07 01:30:47 -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
Michael House
9fef790629 Added caching to /@username/pic endpoint, other small fixes 2022-06-09 05:36:45 -05:00
Michael House
bce168c295 Added purify for html sanitization 2022-06-05 10:58:17 -05:00
Michael House
bce836bf81 First stab at resolving html entities not being rendered 2022-06-05 10:37:09 -05:00
Michael House
82a18e5cad Up-merged and resolved conflicts in routes/login.p and routes/votes.py 2022-05-22 08:23:59 -05:00
FatherInire
fcba426009
Remove some gimmicky r/drama features.
Co-authored-by: Inire <>
2022-05-21 21:43:00 -05:00
Michael House
f3a479f991 Removed emoji feature from templates and deleted emoji images 2022-05-18 20:53:28 -05:00
faul_sname
e1a1277268 [#80] Split marked.js into vendor part and custom part 2022-05-17 19:00:23 -05:00
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
iro84657
35fdbd2e2e Remove references to holes 2022-05-09 11:01:11 -04:00
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
iro84657
71743a3bfc Remove special cases based on SITE_NAME 2022-05-09 01:40:09 -04:00
64617
f6cc00ea1f don't change noeol in files to make the PR cleaner 2022-05-09 11:03:52 +08:00
64617
7c18978c54 default comment sorts to new 2022-05-09 10:51:27 +08:00
Aevann1
307c7afc4d dfg 2022-05-02 21:39:18 +02:00
Aevann1
ae586e9c0c sfd 2022-05-02 02:04:25 +02:00
Aevann1
bd9ff67e74 sdf 2022-05-02 02:02:19 +02:00
Aevann1
e410ef491d sdf 2022-05-02 01:58:06 +02:00
Aevann1
709a7fc4b5 sfd 2022-05-01 23:44:38 +02:00
Aevann1
d6936395b7 fsd 2022-04-29 16:28:13 +02:00
Aevann1
a3832f4c5b fds 2022-04-28 02:04:01 +02:00
Aevann1
c37d5b7ef1 fds 2022-04-28 01:09:39 +02:00
Aevann1
35697540af fsd 2022-04-26 15:40:37 +02:00
Aevann1
269a402309 fsd 2022-04-26 00:28:20 +02:00
Aevann1
15c087e8f2 fsd 2022-04-24 18:25:01 +02:00
Aevann1
c0023f93d2 fds 2022-04-23 01:32:48 +02:00
Aevann1
95af0ce34f dsf 2022-04-23 01:31:55 +02:00
Aevann1
18cbacac5f fsd 2022-04-18 18:09:44 +02:00
Aevann1
2055ae7710 gf 2022-04-17 19:51:01 +02:00
Aevann1
ba0aa55665 fsd 2022-04-17 15:54:22 +02:00
Aevann1
589cf3c673 fds 2022-04-17 15:43:36 +02:00
Aevann1
45d16ddad4 fds 2022-04-16 22:12:34 +02:00
Aevann1
2e195b5446 rfds 2022-04-14 19:20:00 +02:00
Aevann1
5815c571bd fsd 2022-04-14 18:48:50 +02:00
Aevann1
6b6e762d31 fds 2022-04-14 18:46:57 +02:00
Aevann1
4424ce1806 fds 2022-04-13 22:20:55 +02:00
Aevann1
d72107bca4 fds 2022-04-13 22:07:58 +02:00
Aevann1
4a7abe5200 fds 2022-04-13 21:38:15 +02:00