Commit graph

572 commits

Author SHA1 Message Date
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
freamon
899bf834cd post soft-deletion: delay calling delete_dependencies until a post is purged, to allow for restoration 2024-10-26 03:55:21 +00:00
rimu
401df0cc58 nodeinfo - open registrations 2024-10-23 16:08:24 +13:00
freamon
af3bc4f0dd post-reply soft-deletion: activitypub restorations 2024-10-21 22:20:33 +00:00
freamon
1a0ad888db post-reply soft-deletion: remote users in local communities 2024-10-21 22:20:20 +00:00
freamon
0220739d16 post-reply soft-deletion: add info to activitypublog for deletions 2024-10-21 22:19:43 +00:00
rimu
384d8077be avoid trying to delete already deleted posts 2024-10-21 10:22:59 +13:00
rimu
42439fb90a Merge branch 'refactor-post-new' 2024-10-21 09:56:20 +13:00
freamon
a627de0985 post-reply soft-deletion: also replace content for activitypub retrievals 2024-10-19 21:56:01 +00:00
freamon
3196c2cb79 post-reply soft-deletion: activitypub fixes 2024-10-19 21:19:35 +00:00
freamon
a2a81e5726 post-reply soft-deletion: don't overwrite content, so it can be restored 2024-10-19 17:26:26 +00:00
rimu
77172f1d9c minor bugfixes via sentry 2024-10-16 21:55:41 +13:00
rimu
cec844ec4f refactor post-new wip 2024-10-14 15:37:00 +13:00
rimu
f1ddbcf008 populate deleted_by field 2024-10-14 12:35:24 +13:00