[#1043] fix search accounts.
This commit is contained in:
parent
497788a3cc
commit
6dadf5d6f4
5 changed files with 252 additions and 190 deletions
|
|
@ -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})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue