diff options
Diffstat (limited to 'app/controllers/api/v1/accounts')
-rw-r--r-- | app/controllers/api/v1/accounts/statuses_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/api/v1/accounts/statuses_controller.rb b/app/controllers/api/v1/accounts/statuses_controller.rb index 8a216ce0d..11661ce08 100644 --- a/app/controllers/api/v1/accounts/statuses_controller.rb +++ b/app/controllers/api/v1/accounts/statuses_controller.rb @@ -72,7 +72,9 @@ class Api::V1::Accounts::StatusesController < Api::BaseController tag = Tag.find_normalized(params[:tagged]) if tag - Status.tagged_with(tag.id) + return Status.none if !user_signed_in && (tag.local || tag.private) || tag.private && current_account.id != @account.id + scope = tag.private ? current_account.statuses : tag.local ? Status.local : Status + scope.tagged_with(tag.id) else Status.none end |