projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ActivityPub: Refactor create function.
[akkoma]
/
lib
/
pleroma
/
web
/
ostatus
/
handlers
/
note_handler.ex
diff --git
a/lib/pleroma/web/ostatus/handlers/note_handler.ex
b/lib/pleroma/web/ostatus/handlers/note_handler.ex
index 8747dbb676efabcf69b201ce1eb8e535a5197fa3..7b7ed2d5a4a09078b1dd5761849867deefd918e7 100644
(file)
--- a/
lib/pleroma/web/ostatus/handlers/note_handler.ex
+++ b/
lib/pleroma/web/ostatus/handlers/note_handler.ex
@@
-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
# 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
User.increase_note_count(actor)
res
else