]> git.mxchange.org Git - friendica.git/commitdiff
Use "store" when possible
authorMichael <heluecht@pirati.ca>
Fri, 17 Apr 2020 07:55:23 +0000 (07:55 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 17 Apr 2020 07:55:23 +0000 (07:55 +0000)
src/Protocol/Feed.php
src/Protocol/OStatus.php

index c03f9598650c7c3894200169a580bf811689b6fd..14a3c28ab9b002dd1446841dd848a376c4715cdb 100644 (file)
@@ -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);
                                        }                                       
                                }
                        }
index 7dad68550be080df5be48fd7121f91a70cfd8cd9..d95810e3a6dfcee21dee29a7e17e8d0c2db58420 100644 (file)
@@ -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);
                                        }
                                }
                        }