diff options
author | lain <lain@soykaf.club> | 2020-05-26 13:45:54 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-26 13:45:54 +0200 |
commit | 51bc6674f6a9b6794ba981052a1e432915beaef7 (patch) | |
tree | 06319b7d9c9ed4f43c0b4e88b0fabec46b5020fe /lib/pleroma/web/mastodon_api/controllers/status_controller.ex | |
parent | 644195e31e500e96f60ab83ffb5f082a94c1123a (diff) |
Mastodon API Controllers: Use the correct params for rate limiting.
Diffstat (limited to 'lib/pleroma/web/mastodon_api/controllers/status_controller.ex')
-rw-r--r-- | lib/pleroma/web/mastodon_api/controllers/status_controller.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/status_controller.ex b/lib/pleroma/web/mastodon_api/controllers/status_controller.ex index 83d997abd..f20157a5f 100644 --- a/lib/pleroma/web/mastodon_api/controllers/status_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/status_controller.ex @@ -84,13 +84,13 @@ defmodule Pleroma.Web.MastodonAPI.StatusController do plug( RateLimiter, - [name: :status_id_action, bucket_name: "status_id_action:reblog_unreblog", params: ["id"]] + [name: :status_id_action, bucket_name: "status_id_action:reblog_unreblog", params: [:id]] when action in ~w(reblog unreblog)a ) plug( RateLimiter, - [name: :status_id_action, bucket_name: "status_id_action:fav_unfav", params: ["id"]] + [name: :status_id_action, bucket_name: "status_id_action:fav_unfav", params: [:id]] when action in ~w(favourite unfavourite)a ) |