[#1043] fix search accounts.

This commit is contained in:
Maksim 2019-07-05 04:22:08 +00:00 committed by Haelwenn
commit 6dadf5d6f4
5 changed files with 252 additions and 190 deletions

View file

@ -9,6 +9,12 @@ defmodule Pleroma.Tests.Helpers do
defmacro __using__(_opts) do
quote do
def collect_ids(collection) do
collection
|> Enum.map(& &1.id)
|> Enum.sort()
end
def refresh_record(%{id: id, __struct__: model} = _),
do: refresh_record(model, %{id: id})