diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-17 00:49:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 00:49:55 +0100 |
commit | d5c9feb7b7fc489afbd0a287431fe07b42451ef0 (patch) | |
tree | 8482c1ac948d10fd0c0a2a17c34c44f2b9b09ad0 /app/controllers/api/v1/accounts | |
parent | 081e4426f8b4f5377afdd6e68e135a3aded93df1 (diff) |
Add support for private pinned posts (#16954)
* Add support for private pinned toots * Allow local user to pin private toots * Change wording to avoid "direct message"
Diffstat (limited to 'app/controllers/api/v1/accounts')
-rw-r--r-- | app/controllers/api/v1/accounts/statuses_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/api/v1/accounts/statuses_controller.rb b/app/controllers/api/v1/accounts/statuses_controller.rb index 92ccb8061..2c027ea76 100644 --- a/app/controllers/api/v1/accounts/statuses_controller.rb +++ b/app/controllers/api/v1/accounts/statuses_controller.rb @@ -46,9 +46,7 @@ class Api::V1::Accounts::StatusesController < Api::BaseController end def pinned_scope - return Status.none if @account.blocking?(current_account) - - @account.pinned_statuses + @account.pinned_statuses.permitted_for(@account, current_account) end def no_replies_scope |