Reworked contact-id generation

This commit is contained in:
Michael 2019-07-30 22:02:32 +00:00
parent 10395429a7
commit 8ddcd8417d
2 changed files with 13 additions and 30 deletions

View file

@ -419,8 +419,8 @@ class Processor
$item['contact-id'] = Contact::getIdForURL($activity['author'], $receiver, true);
}
if (($receiver != 0) && empty($item['contact-id'])) {
$item['contact-id'] = Contact::getIdForURL($activity['author'], 0, true);
if (empty($item['contact-id'])) {
$item['contact-id'] = $item['author-id'];
}
if (!empty($activity['directmessage'])) {