Show if a post arrived via relay

This commit is contained in:
Michael 2020-09-21 12:31:20 +00:00
parent b8f3c4b065
commit c082109ff9
6 changed files with 23 additions and 8 deletions

View file

@ -180,7 +180,7 @@ class Receiver
return;
}
Processor::fetchMissingActivity($object_id);
Processor::fetchMissingActivity($object_id, [], true);
$item_id = Item::searchByLink($object_id);
if ($item_id) {
@ -468,6 +468,11 @@ class Receiver
$object_data['thread-completion'] = $activity['thread-completion'];
}
// Internal flag for posts that arrived via relay
if (!empty($activity['from-relay'])) {
$object_data['from-relay'] = $activity['from-relay'];
}
switch ($type) {
case 'as:Create':
if (in_array($object_data['object_type'], self::CONTENT_TYPES)) {