Update getShareOpeningTag::getShareOpeningTag method signature
- Optional parameter $guid is now at the end - Always provided parameter $posted is now mandatory
This commit is contained in:
@@ -864,7 +864,7 @@ class Transmitter
|
||||
|
||||
// Disguise forum posts as reshares. Will later be converted to a real announce
|
||||
$item['body'] = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'],
|
||||
$item['guid'], $item['created'], $item['plink']) . $item['body'] . '[/share]';
|
||||
$item['plink'], $item['created'], $item['guid']) . $item['body'] . '[/share]';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2799,9 +2799,9 @@ class Diaspora
|
||||
$original_item["author-name"],
|
||||
$original_item["author-link"],
|
||||
$original_item["author-avatar"],
|
||||
$original_item["guid"],
|
||||
$orig_url,
|
||||
$original_item["created"],
|
||||
$orig_url
|
||||
$original_item["guid"]
|
||||
);
|
||||
|
||||
if (!empty($original_item['title'])) {
|
||||
@@ -3677,7 +3677,7 @@ class Diaspora
|
||||
if ($item['author-link'] != $item['owner-link']) {
|
||||
require_once 'mod/share.php';
|
||||
$body = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'],
|
||||
"", $item['created'], $item['plink']) . $body . '[/share]';
|
||||
$item['plink'], $item['created']) . $body . '[/share]';
|
||||
}
|
||||
|
||||
// convert to markdown
|
||||
|
||||
Reference in New Issue
Block a user