[#3213] Misc. tweaks: proper upsert in Hashtag, better feature toggle management.
[akkoma] / lib / pleroma / web / activity_pub / activity_pub.ex
index 8182bc20504d10faf2b58b6a48e3ea228aa31f4b..9d557c2cdf8781e50a1be5684bd9dcc85dd64824 100644 (file)
@@ -1273,7 +1273,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
       |> exclude_invisible_actors(opts)
       |> exclude_visibility(opts)
 
-    if Config.get([:database, :improved_hashtag_timeline]) do
+    if Config.feature_enabled?(:improved_hashtag_timeline) do
       query
       |> restrict_hashtag_any(opts)
       |> restrict_hashtag_all(opts)