updated plugin ActivityPub
version 5.8.0
This commit is contained in:
@ -43,12 +43,39 @@ class Actor extends Base_Object {
|
||||
'@id' => 'lemmy:moderators',
|
||||
'@type' => '@id',
|
||||
),
|
||||
'alsoKnownAs' => array(
|
||||
'@id' => 'as:alsoKnownAs',
|
||||
'@type' => '@id',
|
||||
),
|
||||
'movedTo' => array(
|
||||
'@id' => 'as:movedTo',
|
||||
'@type' => '@id',
|
||||
),
|
||||
'attributionDomains' => array(
|
||||
'@id' => 'toot:attributionDomains',
|
||||
'@type' => '@id',
|
||||
),
|
||||
'postingRestrictedToMods' => 'lemmy:postingRestrictedToMods',
|
||||
'discoverable' => 'toot:discoverable',
|
||||
'indexable' => 'toot:indexable',
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* The default types for Actors.
|
||||
*
|
||||
* @see https://www.w3.org/TR/activitystreams-vocabulary/#actor-types
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
const TYPES = array(
|
||||
'Application',
|
||||
'Group',
|
||||
'Organization',
|
||||
'Person',
|
||||
'Service',
|
||||
);
|
||||
|
||||
/**
|
||||
* The type of the object.
|
||||
*
|
||||
@ -62,8 +89,7 @@ class Actor extends Base_Object {
|
||||
*
|
||||
* @see https://www.w3.org/TR/activitypub/#inbox
|
||||
*
|
||||
* @var string
|
||||
* | null
|
||||
* @var string|null
|
||||
*/
|
||||
protected $inbox;
|
||||
|
||||
@ -73,8 +99,7 @@ class Actor extends Base_Object {
|
||||
*
|
||||
* @see https://www.w3.org/TR/activitypub/#outbox
|
||||
*
|
||||
* @var string
|
||||
* | null
|
||||
* @var string|null
|
||||
*/
|
||||
protected $outbox;
|
||||
|
||||
@ -175,13 +200,26 @@ class Actor extends Base_Object {
|
||||
protected $manually_approves_followers = false;
|
||||
|
||||
/**
|
||||
* Used to mark an object as containing sensitive content.
|
||||
* Mastodon displays a content warning, requiring users to click
|
||||
* through to view the content.
|
||||
* Domains allowed to use `fediverse:creator` for this actor in
|
||||
* published articles.
|
||||
*
|
||||
* @see https://docs.joinmastodon.org/spec/activitypub/#sensitive
|
||||
* @see https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/
|
||||
*
|
||||
* @var boolean
|
||||
* @var array
|
||||
*/
|
||||
protected $sensitive = null;
|
||||
protected $attribution_domains = null;
|
||||
|
||||
/**
|
||||
* The target of the actor.
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
protected $moved_to;
|
||||
|
||||
/**
|
||||
* The alsoKnownAs of the actor.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $also_known_as;
|
||||
}
|
||||
|
Reference in New Issue
Block a user