Commit graph

194 commits

Author SHA1 Message Date
freamon
7e77c0728d Revert to always preferring incoming Markdown over HTML
Due to issues with spoiler format for Lemmmy and Fediverse links for MBIN (#327)
2024-09-25 01:09:28 +00:00
freamon
8437154f48 Regex embedded mp4/webm/mp3 files out of <img> and into <video> or <audio> tags 2024-09-24 22:20:35 +00:00
freamon
6413490cc3 Revert earlier decision to only send out HTML (pls see app/utils.py line 327) 2024-09-22 13:45:03 +00:00
freamon
646bcdf7be avoid wrapping anchors around existing anchors
(e.g. if raw URL already wrapped by remote PieFed instance)
2024-09-21 22:14:27 +00:00
freamon
bdb201f4d3 Remove safe_mode=True for Markdown2, as most things go straight through allowlist_html, and it mangles code in <code> blocks 2024-09-21 22:14:07 +00:00
freamon
5e2ec8f9d9 Remove last remaining uses of lemmy_markdown_to_html
Everything is now piped through allowlist (except spoiler MD as Lemmy doesn't convert the MD in the contents)
2024-09-21 22:13:52 +00:00
rimu
5e1f67d162 issues found with sentry 2024-09-21 13:23:14 +12:00
freamon
1e06b42099 Add inital routes for API (with minimal changes to main codebase) 2024-09-20 16:06:08 +00:00
rimu
e616ce122f replace requests with httpx #15
better thread safety
2024-09-15 19:30:45 +12:00
rimu
cbacef87d0 just to be sure 2024-09-09 20:20:58 +12:00
rimu
3cb3a1b80d youtube with and without the www 2024-09-09 09:04:05 +12:00
rimu
1ef01d12ab retry get requests 2024-09-09 08:43:10 +12:00
rimu
026a7e699c detect video posts better 2024-09-07 11:15:33 +12:00
rimu
7ab53804d1 larger images and videos 2024-09-06 22:39:27 +12:00
freamon
9e8066bc4e Convert youtu.be links to youtube.com so they embed in post 2024-09-06 01:10:39 +00:00
freamon
ef50a844c5 Regex fix for sub and super script 2024-09-05 07:27:12 +00:00
freamon
2069ca517e Start using Lemmy's HTML 'content' field through an allowlist instead of translating Markdown 2024-08-25 15:58:38 +00:00
rimu
3b76c0fe46 avoid invalid language id 2024-08-20 07:17:18 +12:00
freamon
0512db7f5a Avoid defaulting to Afaraf for brand new users (Bugfix for #273) 2024-08-19 14:40:36 +00:00
freamon
6b1218ce02 Default language selection is always most recently used (Bugfix for #273) 2024-08-19 13:50:49 +00:00
rimu
8fbf59e189 don't send to banned instances 2024-08-19 10:24:49 +12:00
rimu
b8d8b4d74d bugfix 2024-08-17 11:03:52 +12:00
rimu
d0cc79f8ad accept mastodon replies 2024-08-17 10:26:33 +12:00
Alan Roberts
de7c8c9d4c work to get the routes aligned and working 2024-08-15 11:50:02 +00:00
rimu
1f0c8eb6ff community blocking #283 2024-08-12 20:54:10 +12:00
rimu
935337cbd0 tidy ups to #289 2024-08-12 20:23:26 +12:00
Alan Roberts
d0ffaccd58 adding current_mode in custom render_template 2024-08-11 08:04:04 -04:00
rimu
9611a27749 only prepend [Microblog] when autogenerated title is too short. fixes #266 2024-08-08 19:04:50 +12:00
rimu
ac8a7a31f3 disabling downvotes should have a global effect 2024-08-07 17:17:38 +12:00
rimu
f4ff75f88f lemmy - backslashes used for line breaks 2024-08-07 17:13:35 +12:00
rimu
1a2203038c add timeouts to all HTTP requests to avoid hangs 2024-07-30 11:18:06 +08:00
rimu
7b7b0abf17 allow strikethrough html tag #267 2024-07-21 17:04:42 +08:00
rimu
82cc9389ba community wiki - revisions #127 2024-07-18 15:14:55 +08:00
rimu
3643526706 admins can set permissions for staff role #21 2024-07-16 21:29:06 +08:00
rimu
070e5726ef Mastodon - spans with class "invisible" #31 2024-07-16 09:36:31 +08:00
rimu
557e73d6a2 public mod log #21 2024-07-07 16:03:35 +08:00
rimu
3647e2796d mod log #21 2024-07-07 15:01:52 +08:00
rimu
47dd776ca6 bigger thumbnail files to match bigger display size #241 2024-07-01 20:44:08 +08:00
rimu
d9d69c0b8a caching on home page and posts, especially for anonymous users
the home page and post pages are the most likely to get slashdotted by mastodon.
2024-06-30 15:29:52 +08:00
rimu
10b9f859a9 only create keys if they don't have any #225 2024-06-26 21:25:40 +08:00
Hendrik Langer
30e4723ab5 run finalize_user_setup on manual verification 2024-06-26 13:37:30 +02:00
rimu
328eb71648 slight reorganisation #215 2024-06-25 10:06:01 +08:00
rimu
433dd91126 Merge pull request 'Use Site default theme for not logged in users' (#215) from jeena/pyfedi:theme into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/215
2024-06-25 02:02:02 +00:00
rimu
115247f422 improve thumbnail generation reliability 2024-06-22 14:18:26 +08:00
Jeena
fc7e0e53ac Use Site default theme for not logged in users
Until now only logged in users who did not choose a default theme
would get the Site default theme. With this change even users who
did not log in will get the Site default theme.
2024-06-22 13:55:57 +09:00
rimu
6461cf88cf increase language limit #210 2024-06-21 16:21:30 +08:00
rimu
4c64631b8a put recently used languages first in the list #210 2024-06-20 17:27:36 +08:00
rimu
e2ce7c832f better image handling - use content-type header instead of extension #fixes 37 2024-06-19 13:46:36 +08:00
freamon
8137c6b4b1 Simplify regex for raw URLs in text 2024-06-17 16:54:27 +01:00
rimu
7534822231 announcements on home page, set in Admin -> Site Profile 2024-06-10 19:07:15 +08:00