Fix reblogs being discarded after the reblogged status (#19731)
This commit is contained in:
parent
e02812d5b6
commit
c2170991c7
6 changed files with 12 additions and 6 deletions
|
@ -77,7 +77,7 @@ class Api::V1::StatusesController < Api::BaseController
|
|||
@status = Status.where(account: current_account).find(params[:id])
|
||||
authorize @status, :destroy?
|
||||
|
||||
@status.discard
|
||||
@status.discard_with_reblogs
|
||||
StatusPin.find_by(status: @status)&.destroy
|
||||
@status.account.statuses_count = @status.account.statuses_count - 1
|
||||
json = render_to_body json: @status, serializer: REST::StatusSerializer, source_requested: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue