Handle remote update activities.

This commit is contained in:
lain 2018-02-25 16:14:25 +01:00
commit e3629af4da
8 changed files with 154 additions and 52 deletions

View file

@ -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