ActivityPub: Refactor create function.
This commit is contained in:
parent
38b61fddfe
commit
ae26604378
4 changed files with 8 additions and 17 deletions
|
|
@ -112,7 +112,7 @@ defmodule Pleroma.Web.OStatus.NoteHandler do
|
|||
# TODO: Handle this case in make_note_data
|
||||
note <- (if inReplyTo && !inReplyToActivity, do: note |> Map.put("inReplyTo", inReplyTo), else: note)
|
||||
do
|
||||
res = ActivityPub.create(to, actor, context, note, %{}, date, false)
|
||||
res = ActivityPub.create(%{to: to, actor: actor, context: context, object: note, published: date, local: false})
|
||||
User.increase_note_count(actor)
|
||||
res
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue