From 5cf2f477da8d4133bdafb444bced1eddc1a04d94 Mon Sep 17 00:00:00 2001 From: Inhji Date: Tue, 18 Jul 2023 07:35:32 +0200 Subject: [PATCH] fix url check in public note --- lib/chiya_web/controllers/page_html/note.html.heex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chiya_web/controllers/page_html/note.html.heex b/lib/chiya_web/controllers/page_html/note.html.heex index 78d1090..e8510ea 100644 --- a/lib/chiya_web/controllers/page_html/note.html.heex +++ b/lib/chiya_web/controllers/page_html/note.html.heex @@ -24,7 +24,7 @@ <% end %> - <%= if String.length(@note.url) > 0 do %> + <%= if String.length(@note.url || "") > 0 do %>
<.divider text=" " /> <.icon name="hero-link" /> <%= @note.url %>