Avoid empty post

This commit is contained in:
Michael 2018-08-02 05:09:37 +00:00
parent c0d7330b45
commit 8f562a4b22

View file

@ -1514,6 +1514,11 @@ function twitter_fetchparentposts(App $a, $uid, $post, TwitterOAuth $connection,
break;
}
if (empty($post->id_str)) {
logger("twitter_fetchparentposts: This is not a post " . json_encode($post), LOGGER_DEBUG);
break;
}
if (DBA::exists('item', ['uri' => 'twitter::' . $post->id_str, 'uid' => $uid])) {
break;
}