Commit graph

635 commits

Author SHA1 Message Date
freamon
3a9ffa7c53 Streamline ap routes (part 05: add mods or sticky) 2025-01-07 16:23:29 +00:00
freamon
099f073f01 Streamline ap routes (part 04: locks) 2025-01-07 15:27:28 +00:00
freamon
88ac73f979 Streamline ap routes (part 03: flags) 2025-01-07 15:12:28 +00:00
freamon
172f861141 Streamline ap routes (part 02: dislikes) 2025-01-07 14:14:50 +00:00
freamon
05bfed955e Streamline ap routes (part 01: likes) 2025-01-07 13:53:52 +00:00
freamon
78fd925282 Add votes to posts from PeerTube instances when they send an update 2025-01-07 10:53:47 +00:00
freamon
7c817decf2 misc bugfixes for PeerTube 2025-01-06 22:54:41 +00:00
freamon
af82bc7076 Fetch and verify an object from its source if sent without a signature 2025-01-06 19:25:07 +00:00
freamon
26283a5d73 change 'find_community_ap_id()' to 'find_community()' 2025-01-06 19:24:54 +00:00
rimu
ef1550f578 no point using redis caching when the relationship is joined anyway 2025-01-01 16:10:52 +13: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
3662749188 extra fields on profiles ala Mastodon 2024-12-22 15:38:40 +13:00
rimu
d73c12d4c7 remove moviepy and ffmpeg dependency 2024-12-16 20:49:43 +13:00
freamon
c851680b05 Depreciate generate_image_from_video_url(), put <video> in masonry instead #373 2024-12-11 22:54:58 +00:00
freamon
a1d3e445d3 Instance IP address will be incorrect if request was bounced 2024-12-11 00:48:55 +00:00
rimu
4f95d1237e avif image support #374 2024-12-06 09:44:56 +13:00
rimu
6cc6fceb5b sometimes ap_id is a dict?! 2024-12-05 15:42:58 +13:00
rimu
6a9ba43936 sometimes ap_id is a dict?! 2024-12-05 15:42:10 +13:00
rimu
4fe3778008 Merge pull request 'add more info to the modlog' (#367) from h3ndrik/pyfedi:mod4 into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/367
2024-12-05 00:50:44 +00:00
freamon
958a0c9f0c Always store request JSON if activity was unmatched, but use site setting for unfound/blocked Announce object actor 2024-12-04 16:37:42 +00:00
freamon
6b526635ca Avoid error if remote user updates a post from Image to Article 2024-12-03 17:08:31 +00:00
Hendrik L
f98e8eaf5a small optimization 2024-12-03 11:58:43 +01:00
Hendrik L
3cee732a0b remove lock_post helper function 2024-12-03 11:36:56 +01:00
rimu
82be9f9475 use thumbnail image for videos when updating #366 2024-12-03 09:25:10 +13:00
Hendrik L
f8b5f77421 log remote user bans 2024-12-02 14:51:23 +01:00
Hendrik L
e270bc9a0e use lock_post function 2024-12-02 13:30:27 +01:00
Hendrik L
48a0cb64ce modlog: propagate reasons for incoming mod actions 2024-12-02 12:29:59 +01:00
rimu
5c8a14007f double negatives are hard 2024-12-01 21:24:23 +13:00
freamon
64c40b11db Avoid error if 'image' in Person JSON is null 2024-12-01 02:08:28 +00:00
freamon
18b714616a Avoid AttributeError if Actor isn't a string 2024-12-01 01:32:46 +00:00
rimu
f6661b7b9d Revert "Microwave@lemmy.world summary"
This reverts commit 19bd90475a.
2024-12-01 08:19:15 +13:00
freamon
ec91e6c7d2 Bugfix for posts with empty attachments 2024-11-30 14:20:19 +00:00
rimu
73f0ff35f4 a.gup.pe images - attached to notes as a dict 2024-11-30 21:36:42 +13:00
rimu
19bd90475a Microwave@lemmy.world summary 2024-11-30 14:16:04 +13:00
freamon
3a3b366fd4 rename id for logging from 'announce_id' to 'id' 2024-11-29 22:46:59 +00:00
rimu
dd93048e96 temporary instance bans 2024-11-30 09:50:14 +13:00
freamon
95f7b226d2 Fix variable name clash 2024-11-29 17:15:18 +00:00
freamon
aa444f3417 Remove comments about users undeleting themselves, because it turns out that isn't possible from Lemmy 2024-11-29 15:48:38 +00:00
freamon
3b800e7e96 Distinguish between Mastodon account deletes and content deletes 2024-11-29 15:43:42 +00:00
freamon
921c2e78b1 Make replay_inbox_request() a bit more consistent with shared_inbox() 2024-11-29 15:01:24 +00:00
freamon
a6b6b7cc8b AP for direct (instead of Announced) add / remove of moderator 2024-11-27 22:42:27 +00:00
freamon
0b66127d40 Also ignore it if a.gup.pe announces local content back 2024-11-27 22:35:16 +00:00
freamon
01e28a20b5 rework update_post_from_activity #351 2024-11-27 22:31:38 +00:00
rimu
e28550427b return 200 and minor bugfixes and tidy-ups #357 2024-11-28 11:11:59 +13:00
rimu
3553534c00 Merge pull request 'refactor-aproutes' (#357) from refactor-aproutes into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/357
2024-11-27 21:10:01 +00:00
freamon
26eb967a1c apf part 36: Use signed get if remote site responds 401 2024-11-25 12:46:34 +00:00
freamon
ff90e50332 apf part 35: Replay inbox requests 2024-11-24 22:01:11 +00:00
freamon
cc282fe5f7 apf part 34: Redirect user inbox to shared inbox 2024-11-24 21:49:08 +00:00
freamon
3d4ea6637c apf part 33: Log unmatched activity, and delete old code 2024-11-24 21:45:39 +00:00
freamon
175094496a apf part 32: Announce / Undo / Block 2024-11-24 21:43:08 +00:00
freamon
70638c39d1 apf part 31: Announce / Undo / Lock 2024-11-24 21:30:41 +00:00
freamon
381c4a8837 apf part 30: Announce / Undo / Like or Dislike 2024-11-24 21:19:07 +00:00
freamon
4c4fddba80 apf part 29: Announce / Undo / Delete 2024-11-24 21:10:16 +00:00
freamon
51de9ee082 apf part 28: Announce / Block to ban users from communities 2024-11-24 21:01:34 +00:00
freamon
376efadd2d apf part 27: Announce / Remove mods or sticky 2024-11-24 16:35:10 +00:00
freamon
574e3ae215 apf part 26: Announce / Add mods or sticky 2024-11-24 16:31:20 +00:00
freamon
c226a6806a apf part 25: Announce / Lock 2024-11-24 16:06:33 +00:00
freamon
c4665ace21 apf part 24: Announce / Flag 2024-11-24 15:17:06 +00:00
freamon
795250e780 apf part 23: Announce / Like or Dislike 2024-11-24 15:16:48 +00:00
freamon
aad494563e apf part 22: Announce / Delete 2024-11-24 15:16:15 +00:00
freamon
a36d5b42e9 apf part 21: Announce / Create or Update 2024-11-24 15:15:09 +00:00
freamon
ea15cb6079 apf part 20: Undo / Block requests 2024-11-24 15:15:09 +00:00
freamon
30dba0acf2 apf part 19: Undo / Like requests 2024-11-24 15:15:09 +00:00
freamon
e533603f4d apf part 18: Undo / Delete requests 2024-11-24 15:15:09 +00:00
freamon
7dd8717aa7 apf part 17: Undo / Follow requests 2024-11-24 15:15:09 +00:00
freamon
dccecc15bc apf part 16: Block requests 2024-11-24 15:15:09 +00:00
freamon
9bca07504e apf part 15: Flag requests 2024-11-24 15:15:09 +00:00
freamon
5f96034581 apf part 14: Like / Dislike requests 2024-11-24 15:15:09 +00:00
freamon
115bb8426f apf part 13: Delete requests 2024-11-24 15:15:09 +00:00
freamon
046a15e617 apf part 12: Create/Update requests 2024-11-24 15:15:09 +00:00
freamon
37462f57de apf part 11: Rejects for follows 2024-11-24 15:15:09 +00:00
freamon
3cc411f512 apf part 10: Accepts for follows 2024-11-24 15:15:09 +00:00
freamon
3d053ae70a apf part 09: Follow requests 2024-11-24 15:15:09 +00:00
rimu
c135b9c51f clean up duplicate instances #348 2024-11-24 16:32:22 +13:00
rimu
f9d8ac555a Merge remote-tracking branch 'origin/main' 2024-11-19 18:54:45 +13:00
freamon
eb7095af56 apf part 08: process requests from users who want to delete their own account 2024-11-18 19:28:37 +00:00
freamon
7e87308663 apf part 07: verify LD signature if HTTP signature fails 2024-11-18 18:44:28 +00:00
freamon
479bbe4dcc apf part 06: reject any ActivityPub activity from a local actor 2024-11-18 17:47:26 +00:00
freamon
20f17000f5 apf part 05: ignore self-deletes from users that do not exist here 2024-11-18 17:28:41 +00:00
freamon
e57ca1428e apf part 04: ignore unutilised PeerTube activity 2024-11-18 17:18:09 +00:00
freamon
97af03d3cf apf part 03: reject unneccessary retries 2024-11-18 17:16:46 +00:00
freamon
cddd102a3d apf part 02: reject bad JSONs 2024-11-18 16:53:32 +00:00
freamon
fe7791bf4d apf part 01: add log_incoming_ap function 2024-11-18 15:56:47 +00:00
freamon
5e422131ad Prefer image in attachment for image posts #350 2024-11-17 22:14:39 +00:00
rimu
24508a350c support activitypub discovery using Link header and HEAD requests 2024-11-18 10:09:57 +13:00
rimu
434cf9f922 support activitypub discovery using Link header
see https://swicg.github.io/activitypub-html-discovery/#http-link-header
2024-11-18 10:04:58 +13:00
rimu
ffd78bfd80 add unique constraint to user.ap_profile_id and clean up old data 2024-11-14 20:16:09 +13:00
rimu
f16b23bcd8 do not mix model objects from different sessions 2024-11-14 16:51:48 +13:00
rimu
c746be51c9 oops, don't close session too soon 2024-11-14 16:43:17 +13:00
rimu
53e90bb8c1 use separate DB session for common celery tasks to reduce conflicts 2024-11-14 16:28:38 +13:00
rimu
70bb9ab68f finesse my earlier fix 2024-11-06 14:38:58 +13:00
rimu
a056a02ac3 avoid invalid post urls 2024-11-05 17:09:48 +13:00
rimu
122941b696 local variable 'server' referenced before assignment 2024-11-02 16:39:39 +13:00
rimu
21ae50f6ff post licence - save and display 2024-11-02 16:02:29 +13:00
freamon
aa754cbd45 Use community linked to_delete or to_restore instead of one mentioned in request JSON 2024-10-30 15:27:18 +00:00
freamon
1611875936 Move cross-post logic out of routes and into util for delete/restore 2024-10-30 15:26:58 +00:00
freamon
bdbd33f513 Remove celery selection functions for delete/restore because decision was already made for calling function 2024-10-30 15:26:45 +00:00
freamon
e2d3f6d23d Exclude blocked instances from linked instances in federated_instances response 2024-10-29 10:34:19 +00:00
freamon
502e6ff0f6 post soft-deletion: add options to restore or purge deleted posts 2024-10-26 03:55:56 +00:00