]> git.mxchange.org Git - friendica.git/commitdiff
Use the own constants
authorMichael <heluecht@pirati.ca>
Wed, 15 Apr 2020 16:38:52 +0000 (16:38 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 15 Apr 2020 16:38:52 +0000 (16:38 +0000)
src/Model/Tag.php

index 2a09ffdd3067aeb11e7cd44cba9344726b422b89..beda393b7e7ef528ee6ada964e26647a2a3a7dea 100644 (file)
@@ -68,12 +68,12 @@ class Tag
                }
 
                foreach ($tags as $tag) {
-                       if ((substr($tag, 0, 1) != Term::TAG_CHARACTER[Term::HASHTAG]) || (strlen($tag) <= 1)) {
+                       if ((substr($tag, 0, 1) != self::TAG_CHARACTER[self::HASHTAG]) || (strlen($tag) <= 1)) {
                                Logger::info('Skip tag', ['uriid' => $uriid, 'tag' => $tag]);
                                continue;
                        }
 
-                       $fields = ['uri-id' => $uriid, 'name' => substr($tag, 1, 64), 'type' => Term::HASHTAG];
+                       $fields = ['uri-id' => $uriid, 'name' => substr($tag, 1, 64), 'type' => self::HASHTAG];
                        DBA::insert('tag', $fields, true);
                        Logger::info('Stored tag', ['uriid' => $uriid, 'tag' => $tag, 'fields' => $fields]);
                }