| 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 |
|