Don't expire idempotency cache for five minutes.

This commit is contained in:
lain 2018-05-04 21:15:39 +02:00
commit 90c4bed0af
2 changed files with 6 additions and 0 deletions

View file

@ -288,6 +288,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
fallback: fn _ -> CommonAPI.post(user, params) end
)
Cachex.expire(:user_cache, "idem:#{idempotency_key}", :timer.seconds(5 * 60))
render(conn, StatusView, "status.json", %{activity: activity, for: user, as: :activity})
end