From c720acbd8d25ec8c89ee44e2d8f8ab037785bd42 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 21 Jun 2020 09:48:53 -0400 Subject: [PATCH 1/2] [twitter] Update getShareOpeningTag::getShareOpeningTag method signature --- twitter/twitter.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 5167e022..e783524b 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -908,9 +908,8 @@ function twitter_do_mirrorpost(App $a, $uid, $post) $item['author-name'], $item['author-link'], $item['author-avatar'], - '', - $item['created'], - $item['plink'] + $item['plink'], + $item['created'] ); $datarray['body'] .= $item['body'] . '[/share]'; @@ -1631,9 +1630,8 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl $quoted['author-name'], $quoted['author-link'], $quoted['author-avatar'], - "", - $quoted['created'], - $quoted['plink'] + $quoted['plink'], + $quoted['created'] ); $postarray['body'] .= $quoted['body'] . '[/share]'; -- 2.43.5 From a786d34ad356530d5fc9e9895b198de655b55f29 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 21 Jun 2020 09:50:01 -0400 Subject: [PATCH 2/2] [pumpio] Update getShareOpeningTag::getShareOpeningTag method signature --- pumpio/pumpio.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 187d08d4..87e3344d 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1278,8 +1278,7 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp } $postarray['body'] = Friendica\Content\Text\BBCode::getShareOpeningTag($share_author, $post->object->author->url, - $post->object->author->image->url, "", - $created, $post->links->self->href). + $post->object->author->image->url, $post->links->self->href, $created) . $postarray['body']."[/share]"; } -- 2.43.5