projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/unrepeats' of git.pleroma.social:normandy/pleroma into feature...
[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 b012abd51144062b7f99eddce1dfc7f52595b74b..bd6e92238efd6ee748b676a8bdd3b58be3b65034 100644
(file)
--- a/
lib/pleroma/web/ostatus/handlers/note_handler.ex
+++ b/
lib/pleroma/web/ostatus/handlers/note_handler.ex
@@
-138,19
+138,15
@@
defmodule Pleroma.Web.OStatus.NoteHandler do
do: note |> Map.put("inReplyTo", inReplyTo),
else: note
) do
do: note |> Map.put("inReplyTo", inReplyTo),
else: note
) do
- res =
- ActivityPub.create(%{
- to: to,
- actor: actor,
- context: context,
- object: note,
- published: date,
- local: false,
- additional: %{"cc" => cc}
- })
-
- User.increase_note_count(actor)
- res
+ ActivityPub.create(%{
+ to: to,
+ actor: actor,
+ context: context,
+ object: note,
+ published: date,
+ local: false,
+ additional: %{"cc" => cc}
+ })
else
%Activity{} = activity -> {:ok, activity}
e -> {:error, e}
else
%Activity{} = activity -> {:ok, activity}
e -> {:error, e}