[#1041] Minor refactoring.
authorIvan Tashkinov <ivant.business@gmail.com>
Sat, 13 Jul 2019 12:21:50 +0000 (15:21 +0300)
committerIvan Tashkinov <ivant.business@gmail.com>
Sat, 13 Jul 2019 12:21:50 +0000 (15:21 +0300)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 76648b9f7e126470074eab1b7bc465fc6aa51981..8a7b75025700e9fc64913abba3bd800e581e7faa 100644 (file)
@@ -47,9 +47,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
 
   require Logger
 
-  @rate_limited_status_crud_actions ~w(post_status delete_status)a
-  @rate_limited_status_reactions ~w(reblog_status unreblog_status fav_status unfav_status)a
-  @rate_limited_status_actions @rate_limited_status_crud_actions ++ @rate_limited_status_reactions
+  @rate_limited_status_actions ~w(reblog_status unreblog_status fav_status unfav_status
+    post_status delete_status)a
 
   plug(
     RateLimiter,