mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +00:00
New field "quote-uri-id" for quoted posts
This commit is contained in:
parent
0b0567081a
commit
aeb4645ba6
7 changed files with 78 additions and 27 deletions
|
@ -1069,6 +1069,22 @@ class BBCode
|
|||
return $attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace the share block with a link
|
||||
*
|
||||
* @param string $body
|
||||
* @return string
|
||||
*/
|
||||
public static function replaceSharedData(string $body): string
|
||||
{
|
||||
return BBCode::convertShare(
|
||||
$body,
|
||||
function (array $attributes) {
|
||||
return '♲ ' . $attributes['link'];
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function converts a [share] block to text according to a provided callback function whose signature is:
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue