mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:10:11 +00:00
Add some analysing stuff, rendered value is written now more often
This commit is contained in:
parent
9b5c6ed580
commit
c4ba035ee3
7 changed files with 52 additions and 15 deletions
|
@ -955,8 +955,9 @@ function add_page_info_data($data) {
|
|||
$a = get_app();
|
||||
$hashtags = "\n";
|
||||
foreach ($data["keywords"] AS $keyword) {
|
||||
$hashtag = str_replace(array(" ", "+", "/", ".", "#", "'"),
|
||||
array("","", "", "", "", ""), $keyword);
|
||||
/// @todo make a positive list of allowed characters
|
||||
$hashtag = str_replace(array(" ", "+", "/", ".", "#", "'", "’", "`", "(", ")", "„", "“"),
|
||||
array("","", "", "", "", "", "", "", "", "", "", ""), $keyword);
|
||||
$hashtags .= "#[url=".$a->get_baseurl()."/search?tag=".rawurlencode($hashtag)."]".$hashtag."[/url] ";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue