Merge remote-tracking branch 'upstream/develop' into block-behavior
[akkoma] / lib / pleroma / activity / search.ex
index ea9783225129852f05f849049843ac7d0cea5f56..babf9520ba680398f5c434daebe752dbc78bc7a3 100644 (file)
@@ -20,7 +20,7 @@ defmodule Pleroma.Activity.Search do
     author = Keyword.get(options, :author)
 
     search_function =
-      if Application.get_env(:postgres, :version) >= 11 do
+      if :persistent_term.get({Pleroma.Repo, :postgres_version}) >= 11 do
         :websearch
       else
         :plain