diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-04 16:31:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 16:31:44 +0100 |
commit | c2170991c7889b8f6c6434f416cb0a8450db25a1 (patch) | |
tree | 15da9dd2a375d5e0cbc3e1da97688096f7b30591 /app/controllers/api | |
parent | e02812d5b63b4909fff9c0c7246e80745c4c703e (diff) |
Fix reblogs being discarded after the reblogged status (#19731)
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/statuses_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index 2e239d48b..676ec2a79 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -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 |