PluginProbe
ActivityPub / 0.0.2
ActivityPub v0.0.2
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
activitypub / includes / functions.php

functions.php in ActivityPub 0.0.2, at includes/functions.php

41 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Returns the ActivityPub default JSON-context
4 *
5 * @return array the activitypub context
6 */
7 function get_activitypub_context() {
8 $context = array(
9 'https://www.w3.org/ns/activitystreams',
10 'https://w3id.org/security/v1',
11 array(
12 'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
13 'sensitive' => 'as:sensitive',
14 'movedTo' => array(
15 '@id' => 'as:movedTo',
16 '@type' => '@id',
17 ),
18 'Hashtag' => 'as:Hashtag',
19 'ostatus' => 'http://ostatus.org#',
20 'atomUri' => 'ostatus:atomUri',
21 'inReplyToAtomUri' => 'ostatus:inReplyToAtomUri',
22 'conversation' => 'ostatus:conversation',
23 'toot' => 'http://joinmastodon.org/ns#',
24 'Emoji' => 'toot:Emoji',
25 'focalPoint' => array(
26 '@container' => '@list',
27 '@id' => 'toot:focalPoint',
28 ),
29 'featured' => array(
30 '@id' => 'toot:featured',
31 '@type' => '@id',
32 ),
33 'schema' => 'http://schema.org#',
34 'PropertyValue' => 'schema:PropertyValue',
35 'value' => 'schema:value',
36 ),
37 );
38
39 return apply_filters( 'activitypub_json_context', $context );
40 }
41