mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
Handling bottom anchor and top anchor
This commit is contained in:
parent
eb8e6c5b22
commit
b88c9f9d67
2 changed files with 12 additions and 6 deletions
|
@ -61,7 +61,8 @@ class BBCode
|
|||
const BACKLINK = 8;
|
||||
const ACTIVITYPUB = 9;
|
||||
|
||||
const ANCHOR = '<br class="anchor">';
|
||||
const TOP_ANCHOR = '<br class="top-anchor">';
|
||||
const BOTTOM_ANCHOR = '<br class="button-anchor">';
|
||||
/**
|
||||
* Fetches attachment data that were generated the old way
|
||||
*
|
||||
|
@ -1089,7 +1090,7 @@ class BBCode
|
|||
'$guid' => $attributes['guid'],
|
||||
'$network_name' => ContactSelector::networkToName($network, $attributes['profile']),
|
||||
'$network_icon' => ContactSelector::networkToIcon($network, $attributes['profile']),
|
||||
'$content' => self::setMentions(trim($content), 0, $network) . self::ANCHOR,
|
||||
'$content' => self::TOP_ANCHOR . self::setMentions(trim($content), 0, $network) . self::BOTTOM_ANCHOR,
|
||||
]);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue