Implement update announcement admin api
This commit is contained in:
parent
881179ec72
commit
11a1996bf5
6 changed files with 169 additions and 26 deletions
|
|
@ -628,7 +628,11 @@ defmodule Pleroma.Factory do
|
|||
}
|
||||
end
|
||||
|
||||
def announcement_factory(params \\ %{}, data \\ %{}) do
|
||||
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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue