diff --git a/twitter/twitter.php b/twitter/twitter.php index ca693812..d95a1a7a 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -1509,7 +1509,7 @@ function twitter_fetchparentposts(App $a, $uid, $post, TwitterOAuth $connection, $posts = []; - while ($post->in_reply_to_status_id_str != "") { + while (!empty($post->in_reply_to_status_id_str)) { $parameters = ["trim_user" => false, "tweet_mode" => "extended", "id" => $post->in_reply_to_status_id_str]; try {