Use update_and_set cache.
This commit is contained in:
parent
e3629af4da
commit
dfaddeb765
3 changed files with 8 additions and 10 deletions
|
|
@ -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 ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue