mirror of
https://github.com/friendica/friendica
synced 2025-04-24 08:30:11 +00:00
Merge pull request #8792 from MrPetovan/task/share-block-guid
[frio] Add local post link to share block when guid attribute is present
This commit is contained in:
commit
7fd2c00171
7 changed files with 42 additions and 23 deletions
|
@ -2046,7 +2046,7 @@ function api_statuses_repeat($type)
|
|||
$pos = strpos($item['body'], "[share");
|
||||
$post = substr($item['body'], $pos);
|
||||
} else {
|
||||
$post = BBCode::getShareOpeningTag($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['plink'], $item['created'], $item['guid']);
|
||||
|
||||
if (!empty($item['title'])) {
|
||||
$post .= '[h3]' . $item['title'] . "[/h3]\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue