From a23908723abcc89204c57998dd2dbe8226418dbc Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 18 Jun 2020 11:25:06 -0400 Subject: [PATCH 1/2] [twitter] Replace share_header calls with BBCode::getShareOpeningTag --- twitter/twitter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 6e447591..5167e022 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -904,7 +904,7 @@ function twitter_do_mirrorpost(App $a, $uid, $post) return []; } - $datarray['body'] = "\n" . share_header( + $datarray['body'] = "\n" . BBCode::getShareOpeningTag( $item['author-name'], $item['author-link'], $item['author-avatar'], @@ -1627,7 +1627,7 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl } else { $quoted = twitter_createpost($a, $uid, $post->quoted_status, $self, false, false, true, $uriid); if (!empty($quoted['body'])) { - $postarray['body'] .= "\n" . share_header( + $postarray['body'] .= "\n" . BBCode::getShareOpeningTag( $quoted['author-name'], $quoted['author-link'], $quoted['author-avatar'], From e5d3bab855ce68b5f35be27cf44585b0bb5b46e0 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 18 Jun 2020 11:25:14 -0400 Subject: [PATCH 2/2] [pumpio] Replace share_header calls with BBCode::getShareOpeningTag --- pumpio/pumpio.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 42346fa4..187d08d4 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1277,7 +1277,7 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp $created = ''; } - $postarray['body'] = share_header($share_author, $post->object->author->url, + $postarray['body'] = Friendica\Content\Text\BBCode::getShareOpeningTag($share_author, $post->object->author->url, $post->object->author->image->url, "", $created, $post->links->self->href). $postarray['body']."[/share]";