Commit graph

26 commits

Author SHA1 Message Date
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
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
Ben Rog-Wilhelm
1ee9c1bfa7
Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
Aevann1
220ff1e700 thank you drtransimisia 2022-04-13 16:28:35 +02:00
Aevann1
209938d284 fsfd 2022-02-24 14:03:28 +02:00
Aevann1
1c7b081231 farin 2022-02-24 11:24:22 +02:00
Aevann1
8c0f00893a cvb 2022-02-18 23:29:37 +02:00
Aevann1
210e8b257e xczzxc' 2022-01-24 01:55:52 +02:00
Aevann1
7943a6e79c xcvxcv 2022-01-23 19:11:35 +02:00
Aevann1
ab660900c5 i pray 2021-12-15 00:48:37 +02:00
kek7198
0921ef01d2 Merge branch 'master' into mistletoe 2021-12-10 11:17:34 -06:00
Aevann1
52531644f5 fdssfd 2021-12-10 03:55:09 +02:00
kek7198
2ebe6f70da fix 2021-12-06 12:20:58 -06:00
kek7198
e04274d9a5 fix 2021-12-06 12:18:56 -06:00
Aevann1
234401f351 fds 2021-11-02 13:33:36 -07:00
Aevann1
dfb86ffc63 fds 2021-10-18 02:14:19 +02:00
Aevann1
2265d60b22 fd 2021-10-15 16:08:27 +02:00
Aevann1
9b138c1d90 gfg 2021-10-12 19:07:51 +02:00
Aevann1
fdcfe1a955 fgdg 2021-10-08 09:46:00 +02:00
Aevann1
d5c078ff78 dfsfsd' 2021-10-08 06:37:25 +02:00
Aevann1
672afac235 dfsfds 2021-10-06 01:21:23 +02:00
Aevann1
50f6b55f00 dfssdf 2021-10-05 23:59:20 +02:00
Aevann1
7c5568617c fds 2021-10-05 23:58:27 +02:00
Aevann1
1cd22ec0d4 dsfsfd 2021-10-05 23:56:50 +02:00
Aevann1
89511d13ca dfd 2021-10-05 23:51:17 +02:00
Aevann1
9ba2cff84a gdgd 2021-09-27 21:06:27 +02:00