X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fostatus%2Fhandlers%2Fnote_handler.ex;h=e55f972b21bc89d25046acf76658b9a346d9bfe9;hb=fc269fd319a77c6f7dd3ac340c6306f74ec35ce8;hp=e0e4afef690f6283d5a69c996692e441cdd16e35;hpb=fc7016a88c483701ab8eb4ecf7a3fbc5af3810d9;p=akkoma diff --git a/lib/pleroma/web/ostatus/handlers/note_handler.ex b/lib/pleroma/web/ostatus/handlers/note_handler.ex index e0e4afef6..e55f972b2 100644 --- a/lib/pleroma/web/ostatus/handlers/note_handler.ex +++ b/lib/pleroma/web/ostatus/handlers/note_handler.ex @@ -61,7 +61,7 @@ defmodule Pleroma.Web.OStatus.NoteHandler do def make_to_list(actor, mentions) do [ - User.ap_followers(actor) + actor.follower_address ] ++ mentions end @@ -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}