Simplified code

This commit is contained in:
Michael 2020-12-09 05:55:10 +00:00
parent 47844cf1b1
commit 3c18a3eedd

View file

@ -1939,12 +1939,10 @@ function twitter_fetchhometimeline(App $a, $uid)
if (empty($postarray['thr-parent'])) { if (empty($postarray['thr-parent'])) {
$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) && Item::isRemoteSelf($contact, $postarray)) {
if (Item::isRemoteSelf($contact, $postarray)) {
$notify = PRIORITY_MEDIUM; $notify = PRIORITY_MEDIUM;
} }
} }
}
$item = Item::insert($postarray, $notify); $item = Item::insert($postarray, $notify);
$postarray["id"] = $item; $postarray["id"] = $item;