*/
class Hashtag extends BaseModule
{
-
public static function content(array $parameters = [])
{
$result = [];
System::jsonExit($result);
}
- $taglist = DBA::p("SELECT DISTINCT(`term`) FROM `term` WHERE `term` LIKE ? AND `type` = ? ORDER BY `term`",
- $t . '%',
- intval(TERM_HASHTAG)
- );
+ $taglist = DBA::select('tag', ['name'], ["`name` LIKE ?", $t . "%"], ['order' => ['name'], 'limit' => 100]);
while ($tag = DBA::fetch($taglist)) {
- $result[] = ['text' => $tag['term']];
+ $result[] = ['text' => $tag['name']];
}
DBA::close($taglist);