mirror of
https://github.com/friendica/friendica
synced 2025-04-26 03:10:13 +00:00
Hashtag handling with Diaspora improved
This commit is contained in:
parent
98b3058601
commit
538e212a84
4 changed files with 41 additions and 4 deletions
|
@ -2100,7 +2100,7 @@ class BBCode
|
|||
$ret = [];
|
||||
|
||||
// Convert hashtag links to hashtags
|
||||
$string = preg_replace('/#\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism', '#$2', $string);
|
||||
$string = preg_replace('/#\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism', '#$2 ', $string);
|
||||
|
||||
// ignore anything in a code block
|
||||
$string = preg_replace('/\[code.*?\].*?\[\/code\]/sm', '', $string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue