mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 20:43:41 +00:00
Avoid empty post
This commit is contained in:
parent
c0d7330b45
commit
8f562a4b22
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue