Builder.note/1: return {:ok, map(), keyword()} like other Builder functions
This commit is contained in:
parent
a2eacfc525
commit
ba6049aa81
3 changed files with 36 additions and 28 deletions
|
|
@ -214,8 +214,10 @@ defmodule Pleroma.Web.CommonAPI.ActivityDraft do
|
|||
|
||||
emoji = Map.merge(emoji, summary_emoji)
|
||||
|
||||
{:ok, note_data, _meta} = Builder.note(draft)
|
||||
|
||||
object =
|
||||
Builder.note(draft)
|
||||
note_data
|
||||
|> Map.put("emoji", emoji)
|
||||
|> Map.put("source", draft.status)
|
||||
|> Map.put("generator", draft.params[:generator])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue