From eac8ef79513e9ce425cec30e8f12489eccdf3305 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 1 Aug 2025 10:41:53 -0700 Subject: [PATCH] Credo --- lib/pleroma/hashtag.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/hashtag.ex b/lib/pleroma/hashtag.ex index 507bc09bd..91c30c6e7 100644 --- a/lib/pleroma/hashtag.ex +++ b/lib/pleroma/hashtag.ex @@ -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( """