소스 검색

Fix REST API showing non-public reblogs for a given status (#9850)

master
Eugen Rochko 5 년 전
committed by GitHub
부모
커밋
32daecffef
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb

+ 1
- 1
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]


불러오는 중...
취소
저장