diff options
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r-- | lib/pleroma/user.ex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 5ea36fea3..2bca398b7 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -713,6 +713,11 @@ defmodule Pleroma.User do |> Repo.all() end + def get_all_by_ap_ids(ap_ids) do + from(u in __MODULE__, where: u.ap_id in ^ap_ids) + |> Repo.all() + end + # This is mostly an SPC migration fix. This guesses the user nickname by taking the last part # of the ap_id and the domain and tries to get that user def get_by_guessed_nickname(ap_id) do |