Compare commits
No commits in common. "29507cf9dcf5d641791e7f3d8250a3dbfa855a7a" and "197b9a5da64ef35a1643013b930ca4d5bbc7eafe" have entirely different histories.
29507cf9dc
...
197b9a5da6
1 changed files with 16 additions and 3 deletions
|
@ -104,7 +104,7 @@ All publicly accessible WordPress post types can become active for ActivityPub f
|
||||||
|
|
||||||
## Backend
|
## Backend
|
||||||
|
|
||||||
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)).
|
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
|
```php
|
||||||
/**
|
/**
|
||||||
|
@ -202,7 +202,6 @@ We keep in mind that every post type shall only ever send as a `Create` Activity
|
||||||
|
|
||||||
**User Interface:**
|
**User Interface:**
|
||||||
|
|
||||||
|
|
||||||
| | users | tribe_organizers | custom | blog | category |
|
| | users | tribe_organizers | custom | blog | category |
|
||||||
| -----------------|:-----:|:----------------:|:------:|:-----:|:--------:|
|
| -----------------|:-----:|:----------------:|:------:|:-----:|:--------:|
|
||||||
| **post** | C | O | O | A | A |
|
| **post** | C | O | O | A | A |
|
||||||
|
@ -248,6 +247,20 @@ Anyway it seems the question has to be raised wheter activitypub should store a
|
||||||
- Additionally, shouldn't the user have a detailed overview in each case if the actor management should get more complex?
|
- 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
|
# Appendix
|
||||||
|
|
||||||
## The approach of youtube-dl
|
## The approach of youtube-dl
|
||||||
|
|
Loading…
Reference in a new issue