mirror of
https://github.com/friendica/friendica
synced 2025-04-26 10:30:11 +00:00
Making Friendica compatible to Nextcloud Social
This commit is contained in:
parent
0cdf0ba422
commit
d113ccd93c
3 changed files with 7 additions and 3 deletions
|
@ -826,10 +826,10 @@ class Receiver
|
|||
$object_data = [];
|
||||
$object_data['object_type'] = JsonLD::fetchElement($object, '@type');
|
||||
$object_data['id'] = JsonLD::fetchElement($object, '@id');
|
||||
|
||||
$object_data['reply-to-id'] = JsonLD::fetchElement($object, 'as:inReplyTo');
|
||||
|
||||
if (empty($object_data['reply-to-id'])) {
|
||||
// An empty "id" field is translated to "./" by the compactor, so we have to check for this content
|
||||
if (empty($object_data['reply-to-id']) || ($object_data['reply-to-id'] == './')) {
|
||||
$object_data['reply-to-id'] = $object_data['id'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue