mirror of
https://github.com/friendica/friendica
synced 2025-04-20 02:30:12 +00:00
More preparations for term to tag transition
This commit is contained in:
parent
5df5e9521b
commit
7f5f68a904
11 changed files with 33 additions and 21 deletions
|
@ -25,6 +25,7 @@ use Friendica\BaseModule;
|
|||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Util\Strings;
|
||||
use Friendica\Model\Tag;
|
||||
use Friendica\Model\Term;
|
||||
|
||||
/**
|
||||
|
@ -44,7 +45,7 @@ class Hashtag extends BaseModule
|
|||
|
||||
$taglist = DBA::p("SELECT DISTINCT(`term`) FROM `term` WHERE `term` LIKE ? AND `type` = ? ORDER BY `term`",
|
||||
$t . '%',
|
||||
intval(Term::HASHTAG)
|
||||
intval(Tag::HASHTAG)
|
||||
);
|
||||
while ($tag = DBA::fetch($taglist)) {
|
||||
$result[] = ['text' => $tag['term']];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue