Replace share_header calls with BBCode::getShareOpeningTag

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

View file

@ -2043,7 +2043,7 @@ function api_statuses_repeat($type)
$pos = strpos($item['body'], "[share");
$post = substr($item['body'], $pos);
} else {
$post = share_header($item['author-name'], $item['author-link'], $item['author-avatar'], $item['guid'], $item['created'], $item['plink']);
$post = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'], $item['guid'], $item['created'], $item['plink']);
if (!empty($item['title'])) {
$post .= '[h3]' . $item['title'] . "[/h3]\n";