Commit a7c3ead9 authored by lambda's avatar lambda

Invalidate user after key creation.

parent fb5add56
Pipeline #832 failed with stage
in 2 minutes and 19 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment