mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 09:03:42 +00:00
Merge pull request #989 from MrPetovan/task/move-share-header
[various] Replace share_header calls with BBCode::getShareOpeningTag
This commit is contained in:
commit
1e451a3490
2 changed files with 3 additions and 3 deletions
|
@ -1277,7 +1277,7 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp
|
||||||
$created = '';
|
$created = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$postarray['body'] = share_header($share_author, $post->object->author->url,
|
$postarray['body'] = Friendica\Content\Text\BBCode::getShareOpeningTag($share_author, $post->object->author->url,
|
||||||
$post->object->author->image->url, "",
|
$post->object->author->image->url, "",
|
||||||
$created, $post->links->self->href).
|
$created, $post->links->self->href).
|
||||||
$postarray['body']."[/share]";
|
$postarray['body']."[/share]";
|
||||||
|
|
|
@ -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'],
|
||||||
|
|
Loading…
Reference in a new issue