]> git.mxchange.org Git - friendica.git/commitdiff
Tagger is now storing the tag as well
authorMichael <heluecht@pirati.ca>
Fri, 17 Apr 2020 13:36:55 +0000 (13:36 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 17 Apr 2020 13:36:55 +0000 (13:36 +0000)
mod/tagger.php

index e3ae6b9b5c0c4139cc56d28e8a4a4409f25078f3..b3ba472eab829d53f16bd4f21cfa7964162ec085 100644 (file)
@@ -28,6 +28,7 @@ use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Item;
+use Friendica\Model\Tag;
 use Friendica\Model\Term;
 use Friendica\Protocol\Activity;
 use Friendica\Util\Strings;
@@ -171,6 +172,8 @@ EOT;
 
        $term_objtype = ($item['resource-id'] ? Term::OBJECT_TYPE_PHOTO : Term::OBJECT_TYPE_POST);
 
+       Tag::store($item['uri-id'], Tag::HASHTAG, $term);
+
        $t = q("SELECT count(tid) as tcount FROM term WHERE oid=%d AND term='%s'",
                intval($item['id']),
                DBA::escape($term)