From b5f8b4542aea3d0bb56dc682058cfdf8e666099e Mon Sep 17 00:00:00 2001 From: Chunky programmer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Wed, 7 Jun 2023 16:04:14 -0400 Subject: [PATCH 1/2] Search: Don't error if AuthorId does not exist --- src/invidious/views/components/item.ecr | 36 ++++++++++++++++++------- src/invidious/yt_backend/extractors.cr | 4 +-- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index 031b46da..6d227cfc 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -82,11 +82,19 @@
<%= HTML.escape(item.author) %> + <%- if author_verified %> <% end -%> +
+ + <% else %> +<%= HTML.escape(item.author) %> + <%- if author_verified %> <% end -%> +
+ <% end %> +<%= HTML.escape(item.author) %> + <%- if author_verified %> <% end -%> +
+ + <% else %> +<%= HTML.escape(item.author) %> + <%- if author_verified %> <% end -%> +
+ <% end %> +