Twitter: "remote self" posts had been posted with an invalid priority #1054

Merged
annando merged 2 commits from twitter-priority into 2020.12-rc 2020-12-09 06:57:18 +01:00

View file

@ -1939,8 +1939,8 @@ function twitter_fetchhometimeline(App $a, $uid)
if (empty($postarray['thr-parent'])) {
$contact = DBA::selectFirst('contact', [], ['id' => $postarray['contact-id'], 'self' => false]);
if (DBA::isResult($contact)) {
$notify = Item::isRemoteSelf($contact, $postarray);
if (DBA::isResult($contact) && Item::isRemoteSelf($contact, $postarray)) {
$notify = PRIORITY_MEDIUM;
}
}