Commit feea5a65 authored by mgabdev's avatar mgabdev

Fixed issue with account StatusesController

• Fixed:
- issue with account StatusesController
parent fb75f33b
......@@ -9,7 +9,7 @@ class Api::V1::Accounts::StatusesController < Api::BaseController
# if attempting to paginate and no user, return error
if params[:max_id] || params[:since_id] || params[:min_id]
if current_account.nil?
render json: { "error": true }, status: 429
return render json: { "error": true }, status: 429
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment