From 6afcf5c8c710aead40528889e7164c9986eaba62 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 17 Apr 2020 07:55:23 +0000 Subject: [PATCH] Use "store" when possible --- src/Protocol/Feed.php | 2 +- src/Protocol/OStatus.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index c03f95986..14a3c28ab 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -531,7 +531,7 @@ class Feed { if (!empty($id) && !empty($taglist)) { $feeditem = Item::selectFirst(['uri-id'], ['id' => $id]); foreach ($taglist as $tag) { - Tag::storeByHash($feeditem['uri-id'], '#', $tag); + Tag::store($feeditem['uri-id'], Tag::HASHTAG, $tag); } } } diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 7dad68550..d95810e3a 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -665,7 +665,7 @@ class OStatus $item['tag'] .= '#[url=' . DI::baseUrl() . '/search?tag=' . $term . ']' . $term . '[/url]'; // Store the hashtag - Tag::storeByHash($item['uri-id'], '#', $term); + Tag::store($item['uri-id'], Tag::HASHTAG, $term); } } }