1
0
Fork 0
mirror of https://git.pleroma.social/pleroma/pleroma.git synced 2026-02-15 17:16:57 +00:00
This commit is contained in:
Mark Felder 2025-08-01 10:41:53 -07:00
parent 19f32f7b09
commit eac8ef7951

View file

@ -158,7 +158,8 @@ defmodule Pleroma.Hashtag do
where: fragment("LOWER(?) LIKE ANY(?)", ht.name, ^search_patterns),
select: %{
name: ht.name,
# Ranking: exact matches get highest priority (0), then prefix matches (1), then contains (2)
# Ranking: exact matches get highest priority (0)
# then prefix matches (1), then contains (2)
match_rank:
fragment(
"""