mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00:00
Show if a post arrived via relay
This commit is contained in:
parent
b8f3c4b065
commit
c082109ff9
6 changed files with 23 additions and 8 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue