diff options
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/accounts/statuses_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/api/v1/accounts/statuses_controller.rb b/app/controllers/api/v1/accounts/statuses_controller.rb index 11661ce08..914a39801 100644 --- a/app/controllers/api/v1/accounts/statuses_controller.rb +++ b/app/controllers/api/v1/accounts/statuses_controller.rb @@ -57,7 +57,11 @@ class Api::V1::Accounts::StatusesController < Api::BaseController end def pinned_scope - @account.pinned_statuses + if user_signed_in? && current_account.following?(@account) + @account.pinned_statuses + else + @account.pinned_statuses.where.not(visibility: :private) + end end def no_replies_scope |