Fix status edited account to admin
This commit is contained in:
parent
a71e0e78f8
commit
9a4115797c
1 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ module Admin
|
|||
authorize [:admin, @status], :show?
|
||||
UpdateStatusService.new.call(
|
||||
@status,
|
||||
@account.id,
|
||||
current_account.id,
|
||||
no_history: true
|
||||
)
|
||||
log_action(:remove_history, @status)
|
||||
|
@ -44,7 +44,7 @@ module Admin
|
|||
authorize [:admin, @status], :show?
|
||||
UpdateStatusService.new.call(
|
||||
@status,
|
||||
@account.id,
|
||||
current_account.id,
|
||||
media_ids: [],
|
||||
media_attributes: []
|
||||
)
|
||||
|
@ -56,7 +56,7 @@ module Admin
|
|||
authorize [:admin, @status], :show?
|
||||
UpdateStatusService.new.call(
|
||||
@status,
|
||||
@account.id,
|
||||
current_account.id,
|
||||
sensitive: true
|
||||
)
|
||||
log_action(:force_sensitive, @status)
|
||||
|
@ -67,7 +67,7 @@ module Admin
|
|||
authorize [:admin, @status], :show?
|
||||
UpdateStatusService.new.call(
|
||||
@status,
|
||||
@account.id,
|
||||
current_account.id,
|
||||
spoiler_text: 'CW'
|
||||
)
|
||||
log_action(:force_cw, @status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue