Merge pull request #1151 from annando/postopts

Changed parameter for delayed posts
This commit is contained in:
Hypolite Petovan 2021-08-08 15:15:37 -04:00 committed by GitHub
commit 17f9a76ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -191,5 +191,5 @@ function ifttt_message($uid, $item)
$link = hash('ripemd128', $item['msg']);
}
Post\Delayed::add($link, $post, PRIORITY_MEDIUM, true);
Post\Delayed::add($link, $post, PRIORITY_MEDIUM, Post\Delayed::UNPREPARED);
}

View file

@ -1128,7 +1128,7 @@ function twitter_fetchtimeline(App $a, $uid)
Logger::info('Posting mirror post', ['twitter-id' => $post->id_str, 'uid' => $uid]);
Post\Delayed::add($mirrorpost['extid'], $mirrorpost, PRIORITY_MEDIUM, true);
Post\Delayed::add($mirrorpost['extid'], $mirrorpost, PRIORITY_MEDIUM, Post\Delayed::UNPREPARED);
}
}
}