From 8651a58afc32bac2bc21906cbb532e787e657469 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 16 Mar 2023 08:22:41 -0700 Subject: [PATCH] Show created view when remixing That will let anonymous users edit their remixed parties --- app/controllers/api/v1/parties_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index d46fa63..a4f1221 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -65,7 +65,7 @@ module Api new_party.local_id = party_params[:local_id] if !party_params.nil? if new_party.save - render json: PartyBlueprint.render(new_party, view: :full, root: :party, + render json: PartyBlueprint.render(new_party, view: :created, root: :party, meta: { remix: true }) else render_validation_error_response(new_party)