From: Michael Date: Fri, 17 Apr 2020 13:36:55 +0000 (+0000) Subject: Tagger is now storing the tag as well X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=060503eb44ff5664302e40f79f2348767e278997;p=friendica.git Tagger is now storing the tag as well --- diff --git a/mod/tagger.php b/mod/tagger.php index e3ae6b9b5c..b3ba472eab 100644 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -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)