From 05ac4f40918971d385aa5533c59bee93496782cc Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Thu, 6 May 2021 19:09:04 +0300 Subject: [PATCH] FIX: Do not try to show logo if it does not exist (#12968) The generator tried to include the logo in the certificate, even when it did not exist and that caused a server error. --- .../templates/advanced_user.svg.erb | 8 +++++--- .../discourse_narrative_bot/templates/new_user.svg.erb | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/advanced_user.svg.erb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/advanced_user.svg.erb index 9c06ce3e856..000fba0d09b 100644 --- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/advanced_user.svg.erb +++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/advanced_user.svg.erb @@ -46,9 +46,11 @@ <%= @name %> - - - + <% if @logo_group.present? %> + + + + <% end %> diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/new_user.svg.erb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/new_user.svg.erb index cc87e83814e..de84656e921 100644 --- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/new_user.svg.erb +++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/new_user.svg.erb @@ -457,9 +457,11 @@ <%= @name %> - - - + <% if @logo_group.present? %> + + + + <% end %>