This commit is contained in:
Mark Felder 2025-08-01 10:41:53 -07:00
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(
"""