mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:10:12 +00:00
Remove useless rawurlencode calls for building hashtag bbcode
- Fix some formatting
This commit is contained in:
parent
540321d0aa
commit
4874f7f8ab
7 changed files with 25 additions and 25 deletions
|
@ -634,15 +634,15 @@ class OStatus
|
|||
if ($categories) {
|
||||
foreach ($categories as $category) {
|
||||
foreach ($category->attributes as $attributes) {
|
||||
if ($attributes->name == "term") {
|
||||
if ($attributes->name == 'term') {
|
||||
$term = $attributes->textContent;
|
||||
if (!empty($item["tag"])) {
|
||||
$item["tag"] .= ',';
|
||||
if (!empty($item['tag'])) {
|
||||
$item['tag'] .= ',';
|
||||
} else {
|
||||
$item["tag"] = '';
|
||||
$item['tag'] = '';
|
||||
}
|
||||
|
||||
$item["tag"] .= "#[url=".System::baseUrl()."/search?tag=".$term."]".$term."[/url]";
|
||||
$item['tag'] .= '#[url=' . System::baseUrl() . '/search?tag=' . $term . ']' . $term . '[/url]';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue