mirror of
https://github.com/friendica/friendica
synced 2025-04-28 01:10:12 +00:00
Replace share_header calls with BBCode::getShareOpeningTag
This commit is contained in:
parent
cd74fb8609
commit
1f20111c80
4 changed files with 6 additions and 5 deletions
|
@ -863,7 +863,7 @@ class Transmitter
|
|||
$type = 'Announce';
|
||||
|
||||
// Disguise forum posts as reshares. Will later be converted to a real announce
|
||||
$item['body'] = share_header($item['author-name'], $item['author-link'], $item['author-avatar'],
|
||||
$item['body'] = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'],
|
||||
$item['guid'], $item['created'], $item['plink']) . $item['body'] . '[/share]';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2795,7 +2795,7 @@ class Diaspora
|
|||
|
||||
/// @todo Copy tag data from original post
|
||||
|
||||
$prefix = share_header(
|
||||
$prefix = BBCode::getShareOpeningTag(
|
||||
$original_item["author-name"],
|
||||
$original_item["author-link"],
|
||||
$original_item["author-avatar"],
|
||||
|
@ -3676,7 +3676,7 @@ class Diaspora
|
|||
|
||||
if ($item['author-link'] != $item['owner-link']) {
|
||||
require_once 'mod/share.php';
|
||||
$body = share_header($item['author-name'], $item['author-link'], $item['author-avatar'],
|
||||
$body = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'],
|
||||
"", $item['created'], $item['plink']) . $body . '[/share]';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue