From 9af648673fa23ea4584bf283ce2a945ea19ad7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Thu, 5 Oct 2023 14:35:02 +0200 Subject: [PATCH 1/3] remove actor mapping proposal --- architecture design proposal.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/architecture design proposal.md b/architecture design proposal.md index 393927e..4947dac 100755 --- a/architecture design proposal.md +++ b/architecture design proposal.md @@ -250,21 +250,7 @@ Anyway it seems the question has to be raised wheter activitypub should store a ## Conclusion - Anyway it seems the question has to be raised whether the ActivityPub plugin should store a history of all past and currently mapped actors. - Additionally, shouldn't the user have a detailed overview in each case if the actor management should get more complex? - - -## Proposal of how plugins register WordPress-actor types -TODO: This gives no information of how posts get dispatched to which actor. - -```php -interface ActorType { - public function getActorTypeName(); // returns name of the ActorType - public function listActorsOfThisType(); // returns array of actors of this type - public function listPostsForThisActor($actor); // returns array of posts -} -``` - -The registration of an actor type also registers every actor that is currently in the `listActorsOfThisType()`-list. - + # Appendix From 5cd04af5e6ef11afd31626a08708e31f038d7e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Thu, 5 Oct 2023 15:08:57 +0200 Subject: [PATCH 2/3] fix faulty source link --- architecture design proposal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/architecture design proposal.md b/architecture design proposal.md index 4947dac..24deedd 100755 --- a/architecture design proposal.md +++ b/architecture design proposal.md @@ -111,7 +111,7 @@ available for a given post type are greyed out in the user interface: ## Backend -Currently, only one hard-coded transformer exists in [`includes/transformer/class post.php`](https://github.com/Automattic/wordpress-activitypub/blob/master/includes/transformer/class post.php). +Currently, only one hard-coded transformer exists in `includes/transformer/class post.php` ([Source](https://github.com/Automattic/wordpress-activitypub/blob/master/includes/transformer/class-post.php)). ```php /** From cf9f710abef3855cd17c535dbf0f49aae369f72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Thu, 5 Oct 2023 15:26:40 +0200 Subject: [PATCH 3/3] markdown typo: newline before table --- architecture design proposal.md | 1 + 1 file changed, 1 insertion(+) diff --git a/architecture design proposal.md b/architecture design proposal.md index 24deedd..78de5a2 100755 --- a/architecture design proposal.md +++ b/architecture design proposal.md @@ -207,6 +207,7 @@ Other WordPress actor types might have valid use cases, like actors for categori We keep in mind that every post type shall only ever send as a `Create` Activity once by one single actor. **User Interface:** + | | users | tribe_organizers | custom | blog | category | | -----------------|:-----:|:----------------:|:------:|:-----:|:--------:| | **post** | C | O | O | A | A |