mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 14:03:16 +00:00
Update AP transformers
This commit is contained in:
parent
d40af20013
commit
d47edd8bed
2 changed files with 12 additions and 0 deletions
|
@ -30,6 +30,11 @@ class CreateNote extends Fractal\TransformerAbstract
|
||||||
'@context' => [
|
'@context' => [
|
||||||
'https://www.w3.org/ns/activitystreams',
|
'https://www.w3.org/ns/activitystreams',
|
||||||
'https://w3id.org/security/v1',
|
'https://w3id.org/security/v1',
|
||||||
|
[
|
||||||
|
'Hashtag' => 'as:Hashtag',
|
||||||
|
'sensitive' => 'as:sensitive',
|
||||||
|
'commentsDisabled' => 'as:commentsDisabled',
|
||||||
|
]
|
||||||
],
|
],
|
||||||
'id' => $status->permalink(),
|
'id' => $status->permalink(),
|
||||||
'type' => 'Create',
|
'type' => 'Create',
|
||||||
|
@ -58,6 +63,7 @@ class CreateNote extends Fractal\TransformerAbstract
|
||||||
];
|
];
|
||||||
})->toArray(),
|
})->toArray(),
|
||||||
'tag' => $tags,
|
'tag' => $tags,
|
||||||
|
'commentsDisabled' => (bool) $status->comments_disabled,
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,11 @@ class Note extends Fractal\TransformerAbstract
|
||||||
'@context' => [
|
'@context' => [
|
||||||
'https://www.w3.org/ns/activitystreams',
|
'https://www.w3.org/ns/activitystreams',
|
||||||
'https://w3id.org/security/v1',
|
'https://w3id.org/security/v1',
|
||||||
|
[
|
||||||
|
'Hashtag' => 'as:Hashtag',
|
||||||
|
'sensitive' => 'as:sensitive',
|
||||||
|
'commentsDisabled' => 'as:commentsDisabled',
|
||||||
|
]
|
||||||
],
|
],
|
||||||
'id' => $status->url(),
|
'id' => $status->url(),
|
||||||
'type' => 'Note',
|
'type' => 'Note',
|
||||||
|
@ -51,6 +56,7 @@ class Note extends Fractal\TransformerAbstract
|
||||||
];
|
];
|
||||||
})->toArray(),
|
})->toArray(),
|
||||||
'tag' => $tags,
|
'tag' => $tags,
|
||||||
|
'commentsDisabled' => (bool) $status->comments_disabled,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue