Replace share_header calls with BBCode::getShareOpeningTag

This commit is contained in:
Hypolite Petovan 2020-06-18 08:53:57 -04:00
commit 1f20111c80
4 changed files with 6 additions and 5 deletions

View file

@ -20,6 +20,7 @@
*/
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Database\DBA;
use Friendica\Model\Item;
@ -42,7 +43,7 @@ function share_init(App $a) {
$pos = strpos($item['body'], "[share");
$o = substr($item['body'], $pos);
} else {
$o = share_header($item['author-name'], $item['author-link'], $item['author-avatar'], $item['guid'], $item['created'], $item['plink']);
$o = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'], $item['guid'], $item['created'], $item['plink']);
if ($item['title']) {
$o .= '[h3]'.$item['title'].'[/h3]'."\n";