Put custom guards in Web.Utils.Guards

Speeds up recompilation by removing a compile-time cycle on AdminAPI.Search
This commit is contained in:
Alex Gleason 2021-06-07 15:51:52 -05:00
commit d87dfcb5f0
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 14 additions and 7 deletions

View file

@ -27,7 +27,7 @@ defmodule Pleroma.User.Query do
- e.g. Pleroma.User.Query.build(%{ap_id: ["http://ap_id1", "http://ap_id2"]})
"""
import Ecto.Query
import Pleroma.Web.AdminAPI.Search, only: [not_empty_string: 1]
import Pleroma.Web.Utils.Guards, only: [not_empty_string: 1]
alias Pleroma.FollowingRelationship
alias Pleroma.User