We now store the conversation as well
This commit is contained in:
@@ -695,7 +695,7 @@ class Processor
|
||||
Logger::warning('Unknown parent item.', ['uri' => $parent_uri]);
|
||||
return false;
|
||||
}
|
||||
if (($parent['private'] == Item::PRIVATE) && ($parent['private'] != Item::PRIVATE)) {
|
||||
if (($item['private'] == Item::PRIVATE) && ($parent['private'] != Item::PRIVATE)) {
|
||||
Logger::warning('Item is private but the parent is not. Dropping.', ['item-uri' => $item['uri'], 'thr-parent' => $item['thr-parent']]);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -57,6 +57,12 @@ class Queue
|
||||
$fields['in-reply-to-id'] = $activity['reply-to-id'];
|
||||
}
|
||||
|
||||
if (!empty($activity['context'])) {
|
||||
$fields['conversation'] = $activity['context'];
|
||||
} elseif(!empty($activity['conversation'])) {
|
||||
$fields['conversation'] = $activity['conversation'];
|
||||
}
|
||||
|
||||
if (!empty($activity['object_object_type'])) {
|
||||
$fields['object-object-type'] = $activity['object_object_type'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user