Transmit via BCC if contact is hidden, don't store announces

This commit is contained in:
Michael 2019-01-19 16:44:15 +00:00
parent 906f7b5698
commit 809e556009
2 changed files with 20 additions and 5 deletions

View file

@ -332,7 +332,10 @@ class Receiver
return;
}
self::storeConversation($object_data, $body);
// Only store content related stuff - and no announces, since they possibly overwrite the original content
if (in_array($object_data['object_type'], self::CONTENT_TYPES) && ($type != 'as:Announce')) {
self::storeConversation($object_data, $body);
}
// Internal flag for thread completion. See Processor.php
if (!empty($activity['thread-completion'])) {