- $converted = twitter_expand_entities($a, $postarray['body'], $post->retweeted_status, false, $picture);
- $postarray['body'] = $converted["body"];
- $postarray['tag'] = $converted["tags"];
-
- twitter_fetch_contact($uid, $post->retweeted_status->user, false);
-
- // Deactivated at the moment, since there are problems with answers to retweets
- if (false AND !intval(get_config('system','wall-to-wall_share'))) {
- $postarray['body'] = "[share author='".$post->retweeted_status->user->name.
- "' profile='https://twitter.com/".$post->retweeted_status->user->screen_name.
- "' avatar='".$post->retweeted_status->user->profile_image_url_https.
- "' posted='".datetime_convert('UTC','UTC',$post->retweeted_status->created_at).
- "' link='https://twitter.com/".$post->retweeted_status->user->screen_name."/status/".$post->retweeted_status->id_str."']".
- $postarray['body'];
- $postarray['body'] .= "[/share]";
- } else {
- // Let retweets look like wall-to-wall posts
- $postarray['author-name'] = $post->retweeted_status->user->name;
- $postarray['author-link'] = "https://twitter.com/".$post->retweeted_status->user->screen_name;
- $postarray['author-avatar'] = twitter_fix_avatar($post->retweeted_status->user->profile_image_url_https);
- //if (($post->retweeted_status->user->screen_name != "") AND ($post->retweeted_status->id_str != "")) {
- // $postarray['plink'] = "https://twitter.com/".$post->retweeted_status->user->screen_name."/status/".$post->retweeted_status->id_str;
- // $postarray['uri'] = "twitter::".$post->retweeted_status->id_str;
- //}
- }
+ $postarray = $retweet;
+ }
+
+ if (is_object($post->quoted_status)) {
+ $quoted = twitter_createpost($a, $uid, $post->quoted_status, $self, false, false);