Some small fixes

This commit is contained in:
Michael Vogel 2022-12-11 11:21:02 +01:00
parent a10f55bb85
commit 884a265c5a
7 changed files with 37 additions and 18 deletions

View file

@ -2203,7 +2203,12 @@ class Item
return;
}
if (!DBA::exists('contact', ['id' => $item['contact-id'], 'remote_self' => Contact::MIRROR_NATIVE_RESHARE])) {
$cdata = Contact::getPublicAndUserContactID($item['author-id'], $item['uid']);
if (empty($cdata['user']) || ($cdata['user'] != $item['contact-id'])) {
return;
}
if (!DBA::exists('contact', ['id' => $cdata['user'], 'remote_self' => Contact::MIRROR_NATIVE_RESHARE])) {
return;
}