]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Replace share_header calls with BBCode::getShareOpeningTag
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 18 Jun 2020 15:25:06 +0000 (11:25 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 18 Jun 2020 15:25:06 +0000 (11:25 -0400)
twitter/twitter.php

index 6e447591a10511dc4556dc7f35d37def2aeaf9b5..5167e022375cc8a1e77fa5476d2dbb2530cb6607 100644 (file)
@@ -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'],