added collision dedection of new actors via registration function
This commit is contained in:
parent
bf26766fa2
commit
00f08b2162
1 changed files with 6 additions and 1 deletions
|
@ -255,10 +255,15 @@ interface ActorType {
|
||||||
|
|
||||||
The registration of an actor type also registers every actor that is currently in the `listActorsOfThisType()`-list.
|
The registration of an actor type also registers every actor that is currently in the `listActorsOfThisType()`-list.
|
||||||
|
|
||||||
|
To avoid new actor conflicts, a function must be called and return true when creating a new users or posts.
|
||||||
|
|
||||||
|
```php
|
||||||
|
function register_new_actor(ActorType $type, String $name) -> Bool
|
||||||
|
```
|
||||||
|
|
||||||
# Appendix
|
# Appendix
|
||||||
|
|
||||||
## The approach of youtube-dl
|
## The approach of youtube-dl
|
||||||
|
|
||||||
[youtube-dl](https://github.com/ytdl-org/youtube-dl) is solving a similar problem with "extractors" that return data to the processing-chain of youtube-dl. They provide a base class that includes useful functions for common issues e.g. automatic testing, geo-bypassing, login/cookie/header management.
|
[youtube-dl](https://github.com/ytdl-org/youtube-dl) is solving a similar problem with "extractors" that return data to the processing-chain of youtube-dl. They provide a base class that includes useful functions for common issues e.g. automatic testing, geo-bypassing, login/cookie/header management.
|
||||||
They can also chain extractors recursivly, like a extractor for mastodon videos, that gets the video from the post and returns the source of the video, that could be youtube, vimeo or anything else youtube-dl supports.
|
They can also chain extractors recursivly, like a extractor for mastodon videos, that gets the video from the post and returns the source of the video, that could be youtube, vimeo or anything else youtube-dl supports.
|
||||||
|
|
Loading…
Reference in a new issue