Merge branch 'develop' into 'from/upstream-develop/tusooa/edits'
# Conflicts: # lib/pleroma/constants.ex
This commit is contained in:
commit
4edc867b87
49 changed files with 1890 additions and 56 deletions
|
|
@ -639,4 +639,16 @@ defmodule Pleroma.Factory do
|
|||
context: ["home"]
|
||||
}
|
||||
end
|
||||
|
||||
def announcement_factory(params \\ %{}) do
|
||||
data = Map.get(params, :data, %{})
|
||||
|
||||
{_, params} = Map.pop(params, :data)
|
||||
|
||||
%Pleroma.Announcement{
|
||||
data: Map.merge(%{"content" => "test announcement", "all_day" => false}, data)
|
||||
}
|
||||
|> Map.merge(params)
|
||||
|> Pleroma.Announcement.add_rendered_properties()
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue