Go away LDS

This commit is contained in:
Diogo Cordeiro
2018-08-06 02:08:30 +01:00
parent b9c76c2901
commit edc62d4cb0
13 changed files with 13 additions and 52 deletions

View File

@@ -50,10 +50,7 @@ class Activitypub_attachment extends Managed_DataObject
public static function attachment_to_array($attachment)
{
$res = [
'@context' => [
'https://www.w3.org/ns/activitystreams',
'https://w3id.org/security/v1'
],
'@context' => 'https://www.w3.org/ns/activitystreams',
'type' => 'Document',
'mediaType' => $attachment->mimetype,
'url' => $attachment->getUrl(),