From 1fe55679fc06af36fabfee4758adb6c2dc3241b9 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 3 Oct 2018 09:53:12 +0000 Subject: [PATCH] Moved documentation --- src/Protocol/ActivityPub.php | 26 ------------------------ src/Protocol/ActivityPub/Receiver.php | 18 +++++++++++++++- src/Protocol/ActivityPub/Transmitter.php | 12 +++++++++++ 3 files changed, 29 insertions(+), 27 deletions(-) diff --git a/src/Protocol/ActivityPub.php b/src/Protocol/ActivityPub.php index c84f5d3ee4..9ccd90eed6 100644 --- a/src/Protocol/ActivityPub.php +++ b/src/Protocol/ActivityPub.php @@ -42,33 +42,7 @@ use Friendica\Core\Config; * https://github.com/tootsuite/mastodon/blob/master/app/lib/activitypub/activity.rb#L26 * * To-do: - * - * Receiver: - * - Update (Image, Video, Article, Note) - * - Event - * - Undo Announce - * - * Check what this is meant to do: - * - Add - * - Block - * - Flag - * - Remove - * - Undo Block - * - Undo Accept (Problem: This could invert a contact accept or an event accept) - * - * Transmitter: - * - Event - * - * Complicated: - * - Announce - * - Undo Announce - * - * General: - * - Attachments - * - nsfw (sensitive) - * - Queueing unsucessful deliveries * - Polling the outboxes for missing content? - * - Possibly using the LD-JSON parser */ class ActivityPub { diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 5fc4ecbc4b..6b2e02a2c0 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -27,7 +27,23 @@ use Friendica\Core\Config; use Friendica\Protocol\ActivityPub; /** - * @brief ActivityPub Protocol class + * @brief ActivityPub Receiver Protocol class + * + * To-Do: + * - Update (Image, Video, Article, Note) + * - Event + * - Undo Announce + * + * Check what this is meant to do: + * - Add + * - Block + * - Flag + * - Remove + * - Undo Block + * - Undo Accept (Problem: This could invert a contact accept or an event accept) + * + * General: + * - Possibly using the LD-JSON parser */ class Receiver { diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 17ad0d350f..ee4fe20b9a 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -24,6 +24,18 @@ use Friendica\Model\Profile; /** * @brief ActivityPub Transmitter Protocol class + * + * To-Do: + * - Event + * + * Complicated: + * - Announce + * - Undo Announce + * + * General: + * - Attachments + * - nsfw (sensitive) + * - Queueing unsucessful deliveries */ class Transmitter { -- 2.39.5