Remote self on Twitter will now only work with original content (#701)

This commit is contained in:
Michael Vogel 2018-08-13 06:39:51 +02:00 committed by Tobias Diekershoff
parent 10086f940d
commit 48e4475ad7

View File

@ -1674,7 +1674,7 @@ function twitter_fetchhometimeline(App $a, $uid)
$notify = false; $notify = false;
if ($postarray['uri'] == $postarray['parent-uri']) { if (($postarray['uri'] == $postarray['parent-uri']) && ($postarray['author-link'] == $postarray['owner-link'])) {
$contact = DBA::selectFirst('contact', [], ['id' => $postarray['contact-id'], 'self' => false]); $contact = DBA::selectFirst('contact', [], ['id' => $postarray['contact-id'], 'self' => false]);
if (DBA::isResult($contact)) { if (DBA::isResult($contact)) {
$notify = Item::isRemoteSelf($contact, $postarray); $notify = Item::isRemoteSelf($contact, $postarray);