1
0
Fork 0
forked from mirrors/akkoma

factory: Fix article_factory

This commit is contained in:
Haelwenn (lanodan) Monnier 2021-05-31 10:06:06 +02:00
parent 7c5e007b9c
commit 5c3a0dd26e
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -191,8 +191,8 @@ def direct_note_factory do
end
def article_factory do
note_factory()
|> Map.put("type", "Article")
%Pleroma.Object{data: data} = note_factory()
%Pleroma.Object{data: Map.merge(data, %{"type" => "Article"})}
end
def tombstone_factory do