mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Handle "commentsEnabled"
This commit is contained in:
parent
1b13c76d2e
commit
b4a380e9de
2 changed files with 22 additions and 2 deletions
|
@ -2074,6 +2074,11 @@ class Receiver
|
|||
$object_data['attachments'] = array_merge($object_data['attachments'], self::processAttachmentUrls($object['as:url'] ?? []));
|
||||
}
|
||||
|
||||
$object_data['can-comment'] = JsonLD::fetchElement($object, 'pt:commentsEnabled', '@value');
|
||||
if (is_null($object_data['can-comment'])) {
|
||||
$object_data['can-comment'] = JsonLD::fetchElement($object, 'pixelfed:commentsEnabled', '@value');
|
||||
}
|
||||
|
||||
// Support for quoted posts (Pleroma, Fedibird and Misskey)
|
||||
$object_data['quote-url'] = JsonLD::fetchElement($object, 'as:quoteUrl', '@value');
|
||||
if (empty($object_data['quote-url'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue