mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Make guid attribute available to convertShare callback
This commit is contained in:
parent
912ff069c0
commit
d2aa68106b
1 changed files with 2 additions and 1 deletions
|
@ -978,7 +978,7 @@ class BBCode
|
|||
function ($match) use ($callback) {
|
||||
$attribute_string = $match[2];
|
||||
$attributes = [];
|
||||
foreach (['author', 'profile', 'avatar', 'link', 'posted'] as $field) {
|
||||
foreach (['author', 'profile', 'avatar', 'link', 'posted', 'guid'] as $field) {
|
||||
preg_match("/$field=(['\"])(.+?)\\1/ism", $attribute_string, $matches);
|
||||
$attributes[$field] = html_entity_decode($matches[2] ?? '', ENT_QUOTES, 'UTF-8');
|
||||
}
|
||||
|
@ -1088,6 +1088,7 @@ class BBCode
|
|||
'$link' => $attributes['link'],
|
||||
'$link_title' => DI::l10n()->t('link to source'),
|
||||
'$posted' => $attributes['posted'],
|
||||
'$guid' => $attributes['guid'],
|
||||
'$network_name' => ContactSelector::networkToName($contact['network'], $attributes['profile']),
|
||||
'$network_icon' => ContactSelector::networkToIcon($contact['network'], $attributes['profile']),
|
||||
'$content' => self::setMentions(trim($content), 0, $contact['network']),
|
||||
|
|
Loading…
Reference in a new issue