From bf5db4f11a21d9b3b4275f62b39288e5db7a3b37 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 29 Aug 2020 07:13:20 -0500 Subject: [Bug] Remove double-render --- app/controllers/api/v1/statuses/bookmarks_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/api/v1/statuses/bookmarks_controller.rb b/app/controllers/api/v1/statuses/bookmarks_controller.rb index a4c878ed4..19963c002 100644 --- a/app/controllers/api/v1/statuses/bookmarks_controller.rb +++ b/app/controllers/api/v1/statuses/bookmarks_controller.rb @@ -24,7 +24,6 @@ class Api::V1::Statuses::BookmarksController < Api::BaseController bookmark&.destroy! - render json: @status, serializer: REST::StatusSerializer, relationships: StatusRelationshipsPresenter.new([@status], current_account.id, bookmarks_map: { @status.id => false }), current_account_id: current_user&.account_id render json: @status, serializer: REST::StatusSerializer, relationships: StatusRelationshipsPresenter.new([@status], current_account.id, bookmarks_map: { @status.id => false }) rescue Mastodon::NotPermittedError not_found -- cgit