Update note count in ActivityPub.create.

This commit is contained in:
eal 2018-04-21 12:58:04 +03:00
commit 22bfeac256
3 changed files with 15 additions and 16 deletions

View file

@ -61,7 +61,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
additional
),
{:ok, activity} <- insert(create_data, local),
:ok <- maybe_federate(activity) do
:ok <- maybe_federate(activity),
{:ok, actor} <- User.increase_note_count(actor) do
{:ok, activity}
end
end