Skip to content

Commit

Permalink
fix(backend): より多くの人に使われているハッシュタグが検索結果上位に来るように (#11498) (#13340)
Browse files Browse the repository at this point in the history
  • Loading branch information
okayurisotto authored Feb 23, 2024
1 parent b8d8b35 commit a861f91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
super(meta, paramDef, async (ps, me) => {
const hashtags = await this.hashtagsRepository.createQueryBuilder('tag')
.where('tag.name like :q', { q: sqlLikeEscape(ps.query.toLowerCase()) + '%' })
.orderBy('tag.count', 'DESC')
.orderBy('tag.mentionedLocalUsersCount', 'DESC')
.groupBy('tag.id')
.limit(ps.limit)
.offset(ps.offset)
Expand Down

0 comments on commit a861f91

Please sign in to comment.