Coded reformatted
This commit is contained in:
parent
60c7bc90e6
commit
9e726eadee
1 changed files with 24 additions and 21 deletions
|
@ -61,8 +61,10 @@ use Friendica\Util\JsonLD;
|
||||||
class ActivityPub
|
class ActivityPub
|
||||||
{
|
{
|
||||||
const PUBLIC_COLLECTION = 'https://www.w3.org/ns/activitystreams#Public';
|
const PUBLIC_COLLECTION = 'https://www.w3.org/ns/activitystreams#Public';
|
||||||
const CONTEXT = ['https://www.w3.org/ns/activitystreams', 'https://w3id.org/security/v1',
|
const CONTEXT = [
|
||||||
['vcard' => 'http://www.w3.org/2006/vcard/ns#',
|
'https://www.w3.org/ns/activitystreams', 'https://w3id.org/security/v1',
|
||||||
|
[
|
||||||
|
'vcard' => 'http://www.w3.org/2006/vcard/ns#',
|
||||||
'dfrn' => 'http://purl.org/macgirvin/dfrn/1.0/',
|
'dfrn' => 'http://purl.org/macgirvin/dfrn/1.0/',
|
||||||
'diaspora' => 'https://diasporafoundation.org/ns/',
|
'diaspora' => 'https://diasporafoundation.org/ns/',
|
||||||
'litepub' => 'http://litepub.social/ns#',
|
'litepub' => 'http://litepub.social/ns#',
|
||||||
|
@ -80,7 +82,8 @@ class ActivityPub
|
||||||
'discoverable' => 'toot:discoverable',
|
'discoverable' => 'toot:discoverable',
|
||||||
'PropertyValue' => 'schema:PropertyValue',
|
'PropertyValue' => 'schema:PropertyValue',
|
||||||
'value' => 'schema:value',
|
'value' => 'schema:value',
|
||||||
]];
|
]
|
||||||
|
];
|
||||||
const ACCOUNT_TYPES = ['Person', 'Organization', 'Service', 'Group', 'Application', 'Tombstone'];
|
const ACCOUNT_TYPES = ['Person', 'Organization', 'Service', 'Group', 'Application', 'Tombstone'];
|
||||||
/**
|
/**
|
||||||
* Checks if the web request is done for the AP protocol
|
* Checks if the web request is done for the AP protocol
|
||||||
|
|
Loading…
Reference in a new issue