Don't expire idempotency cache for five minutes.
This commit is contained in:
parent
fcd3eca167
commit
90c4bed0af
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue