Commit graph

222 commits

Author SHA1 Message Date
rimu
ddccb7859b parse mastodon urls in extra fields 2025-01-01 15:39:39 +13:00
rimu
93ee376525 utilize mastodon-style regular expressions for defederation 2024-12-31 13:55:24 +13:00
rimu
8088aa1b3c Merge pull request 'Allow reuploading images in image type posts' (#385) from xmatt/pyfedi:feature/image_post_editing into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/385
2024-12-30 00:18:16 +00:00
rimu
de11aa6c50 Defederation subscriptions 2024-12-27 20:20:16 +13:00
xmatt
3f1f97b2ee Merge branch 'main' into feature/image_post_editing 2024-12-23 10:22:50 +00:00
rimu
b4382764f5 improve speed of detect post vote manipulation detection #343 2024-12-23 13:35:24 +13:00
rimu
7c8273158c detect post vote manipulation using jaccard_similarity #343 2024-12-23 13:08:20 +13:00
mtyton
dae5441604 Merge branch 'main' into feature/image_post_editing 2024-12-21 13:13:07 +01:00
mtyton
22e2eacc8c Fixed issues with Image post editing. Added utility to check if image is local or remote. 2024-12-21 13:05:14 +01:00
rimu
d73c12d4c7 remove moviepy and ffmpeg dependency 2024-12-16 20:49:43 +13:00
rimu
52be7bad5d switch to requests.get in generate_image_from_video_url #373 2024-12-14 14:24:21 +13:00
freamon
80f599568b Add theme for experimenting with API 2024-12-08 22:37:02 +00:00
rimu
4e87a365b3 svg image support #374 2024-12-06 10:21:44 +13:00
rimu
4f95d1237e avif image support #374 2024-12-06 09:44:56 +13:00
rimu
654829cbae ban posts or comments 2024-12-02 13:48:10 +13:00
rimu
afcb4be96f improve post teasers by avoid common fail modes 2024-12-01 08:40:35 +13:00
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