diff --git a/lib/pleroma/web/pleroma_api/controllers/account_controller.ex b/lib/pleroma/web/pleroma_api/controllers/account_controller.ex index 75319bf434..760a4e7c8a 100644 --- a/lib/pleroma/web/pleroma_api/controllers/account_controller.ex +++ b/lib/pleroma/web/pleroma_api/controllers/account_controller.ex @@ -168,8 +168,6 @@ def hashtags(%{assigns: %{account: user}} = conn, _params) do %{name: hashtag.name, use_count: use_count} end) ) - else - {:error, message} -> json_response(conn, :forbidden, %{error: message}) end end @@ -183,8 +181,6 @@ def all_hashtags(conn, _params) do %{name: hashtag.name, preferred_name: hashtag.preferred_name, use_count: use_count} end) ) - else - {:error, message} -> json_response(conn, :forbidden, %{error: message}) end end end