From 4eff1447659b006d920a73051d6969e9052bae9a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 17 Oct 2018 08:19:47 -0400 Subject: [PATCH] [twitter] Add support for $is_quote_share in twitter_convert_share --- twitter/twitter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 1cb71625..c69a1f81 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -1891,7 +1891,7 @@ function twitter_update_mentions($body) return $return; } -function twitter_convert_share(array $attributes, array $author_contact, $content) +function twitter_convert_share(array $attributes, array $author_contact, $content, $is_quote_share) { if ($author_contact['network'] == Protocol::TWITTER) { $mention = '@' . $author_contact['nickname']; @@ -1899,5 +1899,5 @@ function twitter_convert_share(array $attributes, array $author_contact, $conten $mention = Protocol::formatMention($attributes['profile'], $attributes['author']); } - return 'RT ' . $mention . ': ' . $content; + return ($is_quote_share ? "\n\n" : '' ) . 'RT ' . $mention . ': ' . $content . "\n\n" . $attributes['link']; }