Fix being able to report otherwise inaccessible statuses
This commit is contained in:
parent
fd2517cb24
commit
2b95673709
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class Api::V1::ReportsController < Api::BaseController
|
||||||
private
|
private
|
||||||
|
|
||||||
def reported_status_ids
|
def reported_status_ids
|
||||||
reported_account.statuses.with_discarded.find(status_ids).pluck(:id)
|
reported_account.statuses.with_discarded.permitted_for(reported_account, current_account).find(status_ids).pluck(:id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_ids
|
def status_ids
|
||||||
|
|
Loading…
Reference in a new issue