Commit graph

231 commits

Author SHA1 Message Date
freamon
c0938c3cf3 Remove x-api template (focus on app instead) 2025-01-21 07:57:50 +00:00
rimu
be18f16f21 add site url to user agent 2025-01-21 19:51:11 +13:00
rimu
20a17c9fb7 don't shorten invalid urls 2025-01-19 15:24:30 +13:00
freamon
f9c9991370 bugfix for blocked phrases 2025-01-17 18:53:23 +00:00
rimu
fada29b70e inline commenting 2025-01-17 15:50:37 +13:00
rimu
f0239724c7 add nofollow noindex to person_link_to_href 2025-01-11 16:10:07 +13:00
rimu
cb7d4fc40f community setting: accept downvotes from community members only 2025-01-11 12:07:58 +13:00
freamon
385bd6bfbe mentions in comments - recognise @user@instance syntax in UI 2025-01-10 12:30:30 +00:00
Hendrik L
918d5d2c94 set attitude to None if no votes cast 2025-01-02 19:20:31 +01:00
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