From 75e7fe76fecedcfcd1a9f73f6b3b27c3cbeacac9 Mon Sep 17 00:00:00 2001 From: f Date: Sun, 8 Aug 2021 21:55:22 -0300 Subject: [PATCH] =?UTF-8?q?Simplificar=20emisi=C3=B3n=20y=20renovaci=C3=B3?= =?UTF-8?q?n=20de=20certificados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://0xacab.org/sutty/sutty/-/issues/123#note_299672 --- app/controllers/api/v1/sites_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/sites_controller.rb b/app/controllers/api/v1/sites_controller.rb index 5537d078..596e2531 100644 --- a/app/controllers/api/v1/sites_controller.rb +++ b/app/controllers/api/v1/sites_controller.rb @@ -25,7 +25,7 @@ module Api # @params [String] name # @params [String] onion def add_onion - if site + if (site = Site.find_by_name(params[:name])) usuarie = GitAuthor.new email: "tor@#{Site.domain}", name: 'Tor' service = SiteService.new site: site, usuarie: usuarie, params: params