Merge pull request #1054 from annando/twitter-priority

Twitter: "remote self" posts had been posted with an invalid priority
This commit is contained in:
Hypolite Petovan 2020-12-09 00:57:17 -05:00 committed by GitHub
commit 895c264bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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;
}
}