mirror of
https://github.com/friendica/friendica
synced 2025-04-26 10:30:11 +00:00
Diaspora signatures are now stored and transmitted correctly
This commit is contained in:
parent
ea7a08ace2
commit
4831688dc0
6 changed files with 29 additions and 23 deletions
|
@ -144,6 +144,8 @@ class Processor
|
|||
self::fetchMissingActivity($activity['reply-to-id'], $activity);
|
||||
}
|
||||
|
||||
$item['diaspora_signed_text'] = defaults($activity, 'diaspora:comment', '');
|
||||
|
||||
self::postItem($activity, $item);
|
||||
}
|
||||
|
||||
|
@ -174,6 +176,8 @@ class Processor
|
|||
$item['gravity'] = GRAVITY_ACTIVITY;
|
||||
$item['object-type'] = ACTIVITY_OBJ_NOTE;
|
||||
|
||||
$item['diaspora_signed_text'] = defaults($activity, 'diaspora:like', '');
|
||||
|
||||
self::postItem($activity, $item);
|
||||
}
|
||||
|
||||
|
@ -260,7 +264,6 @@ class Processor
|
|||
$item['tag'] = self::constructTagList($activity['tags'], $activity['sensitive']);
|
||||
$item['app'] = $activity['generator'];
|
||||
$item['plink'] = defaults($activity, 'alternate-url', $item['uri']);
|
||||
$item['diaspora_signed_text'] = defaults($activity, 'diaspora:comment', '');
|
||||
|
||||
$item = self::constructAttachList($activity['attachments'], $item);
|
||||
|
||||
|
|
|
@ -705,6 +705,7 @@ class Receiver
|
|||
|
||||
$object_data['diaspora:guid'] = JsonLD::fetchElement($object, 'diaspora:guid');
|
||||
$object_data['diaspora:comment'] = JsonLD::fetchElement($object, 'diaspora:comment');
|
||||
$object_data['diaspora:like'] = JsonLD::fetchElement($object, 'diaspora:like');
|
||||
$object_data['actor'] = $object_data['author'] = $actor;
|
||||
$object_data['context'] = JsonLD::fetchElement($object, 'as:context');
|
||||
$object_data['conversation'] = JsonLD::fetchElement($object, 'ostatus:conversation');
|
||||
|
|
|
@ -627,6 +627,9 @@ class Transmitter
|
|||
$data['object'] = self::createActivityFromItem($item_id, true);
|
||||
} else {
|
||||
$data['diaspora:guid'] = $item['guid'];
|
||||
if (!empty($item['signed_text'])) {
|
||||
$data['diaspora:like'] = $item['signed_text'];
|
||||
}
|
||||
$data['object'] = $item['thr-parent'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue