Remove useless rawurlencode calls for building hashtag bbcode

- Fix some formatting
This commit is contained in:
Hypolite Petovan 2018-11-22 09:23:42 -05:00
parent 540321d0aa
commit 4874f7f8ab
7 changed files with 25 additions and 25 deletions

View file

@ -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]';
}
}
}