mirror of
https://github.com/friendica/friendica
synced 2025-05-04 17:44:10 +02:00
Merge branch 'no-term3' into no-term2
This commit is contained in:
commit
3d4ace7a9d
6 changed files with 13 additions and 80 deletions
|
@ -655,17 +655,8 @@ class OStatus
|
|||
foreach ($categories as $category) {
|
||||
foreach ($category->attributes as $attributes) {
|
||||
if ($attributes->name == 'term') {
|
||||
$term = $attributes->textContent;
|
||||
if (!empty($item['tag'])) {
|
||||
$item['tag'] .= ',';
|
||||
} else {
|
||||
$item['tag'] = '';
|
||||
}
|
||||
|
||||
$item['tag'] .= '#[url=' . DI::baseUrl() . '/search?tag=' . $term . ']' . $term . '[/url]';
|
||||
|
||||
// Store the hashtag
|
||||
Tag::store($item['uri-id'], Tag::HASHTAG, $term);
|
||||
Tag::store($item['uri-id'], Tag::HASHTAG, $attributes->textContent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue