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
Showing only changes of commit 3c18a3eedd - Show all commits

View file

@ -1939,10 +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)) {
if (Item::isRemoteSelf($contact, $postarray)) {
$notify = PRIORITY_MEDIUM;
}
if (DBA::isResult($contact) && Item::isRemoteSelf($contact, $postarray)) {
$notify = PRIORITY_MEDIUM;
}
}