From: Michael Date: Thu, 2 Aug 2018 05:09:37 +0000 (+0000) Subject: Avoid empty post X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f562a4b22e9ac038d323832cc3dac8aa5ab190a;p=friendica-addons.git Avoid empty post --- diff --git a/twitter/twitter.php b/twitter/twitter.php index 8ac6197b..a130a1cd 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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; }