diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-01-18 20:58:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 20:58:00 +0100 |
commit | 32daecffefa5e633bf104ad4fac33621f6ea8201 (patch) | |
tree | 82b898f3293c3e7f0a1b180da857eb7838ffae01 /app | |
parent | bf31f394fb82799ea29143f1bca048b8f16fe1cb (diff) |
Fix REST API showing non-public reblogs for a given status (#9850)
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb b/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb index 4315b0283..6851099f6 100644 --- a/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb +++ b/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb @@ -25,7 +25,7 @@ class Api::V1::Statuses::RebloggedByAccountsController < Api::BaseController end def paginated_statuses - Status.where(reblog_of_id: @status.id).paginate_by_max_id( + Status.where(reblog_of_id: @status.id).where(visibility: [:public, :unlisted]).paginate_by_max_id( limit_param(DEFAULT_ACCOUNTS_LIMIT), params[:max_id], params[:since_id] |