X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fostatus%2Fhandlers%2Fnote_handler.ex;h=e55f972b21bc89d25046acf76658b9a346d9bfe9;hb=72ca58c540ee03de50631ea08a419f2589a0fe8e;hp=f675901b208305f5551b2cf4a4999a4b0eb007cf;hpb=140f72725dd3d2840b356107e24542ba2896e4e1;p=akkoma diff --git a/lib/pleroma/web/ostatus/handlers/note_handler.ex b/lib/pleroma/web/ostatus/handlers/note_handler.ex index f675901b2..e55f972b2 100644 --- a/lib/pleroma/web/ostatus/handlers/note_handler.ex +++ b/lib/pleroma/web/ostatus/handlers/note_handler.ex @@ -92,7 +92,9 @@ 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 - ActivityPub.create(to, actor, context, note, %{}, date, false) + res = ActivityPub.create(to, actor, context, note, %{}, date, false) + User.update_note_count(actor) + res else %Activity{} = activity -> {:ok, activity} e -> {:error, e}