1
1
Fork 0

Store the direction only when there is content to store

This commit is contained in:
Michael 2020-03-03 08:04:14 +00:00
parent af6db65961
commit e3d3dc50e5

View file

@ -461,6 +461,10 @@ class Processor
$item['protocol'] = Conversation::PARCEL_ACTIVITYPUB;
$item['conversation-href'] = $activity['context'] ?? '';
$item['conversation-uri'] = $activity['conversation'] ?? '';
if (isset($activity['push'])) {
$item['direction'] = $activity['push'] ? Conversation::PUSH : Conversation::PULL;
}
}
$isForum = false;
@ -489,10 +493,6 @@ class Processor
return;
}
if (isset($activity['push'])) {
$item['direction'] = $activity['push'] ? Conversation::PUSH : Conversation::PULL;
}
$item['plink'] = $activity['alternate-url'] ?? $item['uri'];
$item = self::constructAttachList($activity, $item);