mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-24 02:02:19 +00:00
Invalidate user after key creation.
This commit is contained in:
parent
fb5add56fa
commit
a7c3ead9e6
|
@ -60,6 +60,8 @@ 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))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue