mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
Hash tag links now do a redir
This commit is contained in:
parent
f8946c9e0a
commit
17b05c9ad9
7 changed files with 33 additions and 15 deletions
|
@ -1178,8 +1178,8 @@ function item_body_set_hashtags(&$item) {
|
|||
|
||||
$URLSearchString = "^\[\]";
|
||||
|
||||
// All hashtags should point to the home server if "local_search" is activated
|
||||
if (Config::get('system', 'local_search')) {
|
||||
// All hashtags should point to the home server if "local_tags" is activated
|
||||
if (Config::get('system', 'local_tags')) {
|
||||
$item["body"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
|
||||
"#[url=".App::get_baseurl()."/search?tag=$2]$2[/url]", $item["body"]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue