Revert "Reworked contact-id generation"

This commit is contained in:
Hypolite Petovan
2019-08-01 20:39:42 -04:00
committed by GitHub
parent e8459cce34
commit 2e6b72ba62
2 changed files with 31 additions and 14 deletions

View File

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