From 94d0bb83b557824a4b530d5df15415dbf1661bcf Mon Sep 17 00:00:00 2001 From: amandabizzinotto Date: Tue, 26 Aug 2025 13:45:40 -0300 Subject: [PATCH] Add a random slug to the Slack view ID --- app/lib/slack_client/views/puzzle_form.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/slack_client/views/puzzle_form.rb b/app/lib/slack_client/views/puzzle_form.rb index ab4e11b..3a72cb9 100644 --- a/app/lib/slack_client/views/puzzle_form.rb +++ b/app/lib/slack_client/views/puzzle_form.rb @@ -27,7 +27,7 @@ def create end end - Slack::BlockKit.modal blocks: blocks, external_id: "puzzle_form", title: "Suggest a Puzzle" do |modal| + Slack::BlockKit.modal blocks: blocks, external_id: "puzzle_form__#{SecureRandom.hex(6)}", title: "Suggest a Puzzle" do |modal| modal.submit text: "Submit" modal.close text: "Close" end.as_json