Use update_and_set cache.

This commit is contained in:
lain 2018-02-25 16:34:24 +01:00
commit dfaddeb765
3 changed files with 8 additions and 10 deletions

View file

@ -128,9 +128,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
actor
|> User.upgrade_changeset(update_data)
|> Repo.update
|> User.update_and_set_cache()
User.invalidate_cache(actor)
ActivityPub.update(%{local: false, to: data["to"] || [], cc: data["cc"] || [], object: object, actor: actor_id})
else
e ->