[twitter] Replace share_header calls with BBCode::getShareOpeningTag

pull/989/head
Hypolite Petovan 2020-06-18 11:25:06 -04:00
parent b25092353a
commit a23908723a
1 changed files with 2 additions and 2 deletions

View File

@ -904,7 +904,7 @@ function twitter_do_mirrorpost(App $a, $uid, $post)
return []; return [];
} }
$datarray['body'] = "\n" . share_header( $datarray['body'] = "\n" . BBCode::getShareOpeningTag(
$item['author-name'], $item['author-name'],
$item['author-link'], $item['author-link'],
$item['author-avatar'], $item['author-avatar'],
@ -1627,7 +1627,7 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl
} else { } else {
$quoted = twitter_createpost($a, $uid, $post->quoted_status, $self, false, false, true, $uriid); $quoted = twitter_createpost($a, $uid, $post->quoted_status, $self, false, false, true, $uriid);
if (!empty($quoted['body'])) { if (!empty($quoted['body'])) {
$postarray['body'] .= "\n" . share_header( $postarray['body'] .= "\n" . BBCode::getShareOpeningTag(
$quoted['author-name'], $quoted['author-name'],
$quoted['author-link'], $quoted['author-link'],
$quoted['author-avatar'], $quoted['author-avatar'],