PluginProbe
ActivityPub / 5.3.1
ActivityPub v5.3.1
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/activity/class-actor.php +58 -22 2.1.05.3.1 View file →
@@ -2,8 +2,10 @@
2 2 /**
3 3 * Inspired by the PHP ActivityPub Library by @Landrok
4 4 *
5 5 * @link https://github.com/landrok/activitypub
6 + *
7 + * @package Activitypub
6 8 */
7 9
8 10 namespace Activitypub\Activity;
9 11
@@ -21,39 +23,51 @@
21 23 'https://www.w3.org/ns/activitystreams',
22 24 'https://w3id.org/security/v1',
23 25 'https://purl.archive.org/socialweb/webfinger',
24 26 array(
25 - 'schema' => 'http://schema.org#',
26 - 'toot' => 'http://joinmastodon.org/ns#',
27 - 'webfinger' => 'https://webfinger.net/#',
28 - 'lemmy' => 'https://join-lemmy.org/ns#',
27 + 'schema' => 'http://schema.org#',
28 + 'toot' => 'http://joinmastodon.org/ns#',
29 + 'lemmy' => 'https://join-lemmy.org/ns#',
29 30 'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
30 - 'PropertyValue' => 'schema:PropertyValue',
31 - 'value' => 'schema:value',
32 - 'Hashtag' => 'as:Hashtag',
33 - 'featured' => array(
34 - '@id' => 'toot:featured',
31 + 'PropertyValue' => 'schema:PropertyValue',
32 + 'value' => 'schema:value',
33 + 'Hashtag' => 'as:Hashtag',
34 + 'featured' => array(
35 + '@id' => 'toot:featured',
35 36 '@type' => '@id',
36 37 ),
37 - 'featuredTags' => array(
38 - '@id' => 'toot:featuredTags',
38 + 'featuredTags' => array(
39 + '@id' => 'toot:featuredTags',
39 40 '@type' => '@id',
40 41 ),
41 - 'moderators' => array(
42 - '@id' => 'lemmy:moderators',
42 + 'moderators' => array(
43 + '@id' => 'lemmy:moderators',
43 44 '@type' => '@id',
44 45 ),
45 - 'postingRestrictedToMods' => 'lemmy:postingRestrictedToMods',
46 - 'discoverable' => 'toot:discoverable',
47 - 'indexable' => 'toot:indexable',
48 - 'resource' => 'webfinger:resource',
46 + 'attributionDomains' => array(
47 + '@id' => 'toot:attributionDomains',
48 + '@type' => '@id',
49 + ),
50 + 'alsoKnownAs' => array(
51 + '@id' => 'as:alsoKnownAs',
52 + '@type' => '@id',
53 + ),
54 + 'movedTo' => array(
55 + '@id' => 'as:movedTo',
56 + '@type' => '@id',
57 + ),
58 + 'postingRestrictedToMods' => 'lemmy:postingRestrictedToMods',
59 + 'discoverable' => 'toot:discoverable',
60 + 'indexable' => 'toot:indexable',
49 61 ),
50 62 );
51 63
52 64 /**
65 + * The type of the object.
66 + *
53 67 * @var string
54 68 */
55 - protected $type = 'Person';
69 + protected $type;
56 70
57 71 /**
58 72 * A reference to an ActivityStreams OrderedCollection comprised of
59 73 * all the messages received by the actor.
@@ -59,10 +73,9 @@
59 73 * all the messages received by the actor.
60 74 *
61 75 * @see https://www.w3.org/TR/activitypub/#inbox
62 76 *
63 - * @var string
64 - * | null
77 + * @var string|null
65 78 */
66 79 protected $inbox;
67 80
68 81 /**
@@ -70,10 +83,9 @@
70 83 * all the messages produced by the actor.
71 84 *
72 85 * @see https://www.w3.org/TR/activitypub/#outbox
73 86 *
74 - * @var string
75 - * | null
87 + * @var string|null
76 88 */
77 89 protected $outbox;
78 90
79 91 /**
@@ -170,5 +182,29 @@
170 182 *
171 183 * @var boolean
172 184 */
173 185 protected $manually_approves_followers = false;
186 +
187 + /**
188 + * Domains allowed to use `fediverse:creator` for this actor in
189 + * published articles.
190 + *
191 + * @see https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/
192 + *
193 + * @var array
194 + */
195 + protected $attribution_domains = null;
196 +
197 + /**
198 + * The target of the actor.
199 + *
200 + * @var string|null
201 + */
202 + protected $moved_to;
203 +
204 + /**
205 + * The alsoKnownAs of the actor.
206 + *
207 + * @var array
208 + */
209 + protected $also_known_as;
174 210 }