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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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'])) {