Commit graph

206 commits

Author SHA1 Message Date
rimu
91dbe4c30b improve post teasers by avoid common fail modes 2024-12-01 08:37:53 +13:00
freamon
3f9a0a5fea replace the 'static' for images hotlinked to fandom sites with 'vignette' 2024-11-17 18:55:45 +00:00
rimu
53e90bb8c1 use separate DB session for common celery tasks to reduce conflicts 2024-11-14 16:28:38 +13:00
freamon
57191c2c23 API: utilise DB exceptions for return errors 2024-10-27 13:36:56 +00:00
rimu
8a1aa648ae daily maintenance: handle exceptions 2024-10-23 08:37:08 +13:00
rimu
156c328c6f tidy up calls to obsolete post_ranking 2024-10-22 19:51:37 +13:00
rimu
cec844ec4f refactor post-new wip 2024-10-14 15:37:00 +13:00
freamon
07010ffaee API: ensure only reply owner can edit the reply 2024-10-13 20:29:05 +00:00
freamon
d09c21a32e API: support /site/block endpoint 2024-10-09 23:48:58 +00:00
freamon
41aa128b67 API: return user_id as int, not str 2024-10-07 00:48:37 +00:00
freamon
30fb76ed9e API: better error msg if Auth is missing from header 2024-10-06 02:17:13 +00:00
rimu
c37a01fde4 set instance.start_trying_again if it has not been already 2024-09-30 15:58:02 +13:00
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