瀏覽代碼

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

master
Eugen Rochko 5 年之前
committed by GitHub
父節點
當前提交
32daecffef
沒有發現已知的金鑰在資料庫的簽署中 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]


Loading…
取消
儲存