Check that an auto reshare is only done on the expected contact
This commit is contained in:
parent
cd3e842f76
commit
a01cdccb05
|
@ -2271,6 +2271,11 @@ class Item
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$cdata = Contact::getPublicAndUserContactID($item['author-id'], $item['uid']);
|
||||||
|
if (empty($cdata['user']) || ($cdata['user'] != $item['contact-id'])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!DBA::exists('contact', ['id' => $item['contact-id'], 'remote_self' => Contact::MIRROR_NATIVE_RESHARE])) {
|
if (!DBA::exists('contact', ['id' => $item['contact-id'], 'remote_self' => Contact::MIRROR_NATIVE_RESHARE])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user