Limit the user and session tracking concerns to the home timeline

This commit is contained in:
Fosco Marotto
2021-02-19 09:50:59 -05:00
parent da522f8841
commit 4acf7f0bce
3 changed files with 6 additions and 4 deletions

View File

@@ -91,8 +91,6 @@ class Api::BaseController < ApplicationController
render json: { error: 'Your account has been flagged as spam. Please contact support@gab.com if you believe this is an error.' }, status: 403
elsif !current_user.approved?
render json: { error: 'Your login is currently pending approval' }, status: 403
else
set_user_activity
end
end