Use "store" when possible
This commit is contained in:
@@ -531,7 +531,7 @@ class Feed {
|
|||||||
if (!empty($id) && !empty($taglist)) {
|
if (!empty($id) && !empty($taglist)) {
|
||||||
$feeditem = Item::selectFirst(['uri-id'], ['id' => $id]);
|
$feeditem = Item::selectFirst(['uri-id'], ['id' => $id]);
|
||||||
foreach ($taglist as $tag) {
|
foreach ($taglist as $tag) {
|
||||||
Tag::storeByHash($feeditem['uri-id'], '#', $tag);
|
Tag::store($feeditem['uri-id'], Tag::HASHTAG, $tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -665,7 +665,7 @@ class OStatus
|
|||||||
$item['tag'] .= '#[url=' . DI::baseUrl() . '/search?tag=' . $term . ']' . $term . '[/url]';
|
$item['tag'] .= '#[url=' . DI::baseUrl() . '/search?tag=' . $term . ']' . $term . '[/url]';
|
||||||
|
|
||||||
// Store the hashtag
|
// Store the hashtag
|
||||||
Tag::storeByHash($item['uri-id'], '#', $term);
|
Tag::store($item['uri-id'], Tag::HASHTAG, $term);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user