Handle remote update activities.
This commit is contained in:
parent
dd97193311
commit
e3629af4da
8 changed files with 154 additions and 52 deletions
|
|
@ -60,9 +60,9 @@ defmodule Pleroma.Web.WebFinger do
|
|||
else
|
||||
{:ok, pem} = Salmon.generate_rsa_pem
|
||||
info = Map.put(info, "keys", pem)
|
||||
Cachex.del(:user_cache, "ap_id:#{user.ap_id}")
|
||||
Cachex.del(:user_cache, "nickname:#{user.nickname}")
|
||||
Repo.update(Ecto.Changeset.change(user, info: info))
|
||||
res = Repo.update(Ecto.Changeset.change(user, info: info))
|
||||
User.invalidate_cache(user)
|
||||
res
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue