summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-03-24 22:39:07 -0500
committerOmar Roth <omarroth@hotmail.com>2018-03-24 22:39:07 -0500
commit253ea8113bd3afc210e78a56b57e2371c8695dd8 (patch)
tree5028f0343504e1c298cafb0f019583a0419b793d
parent076eaa7635cc320518a2e96775ff50e3712a7e77 (diff)
downloadinvidious-253ea8113bd3afc210e78a56b57e2371c8695dd8.tar.gz
invidious-253ea8113bd3afc210e78a56b57e2371c8695dd8.tar.bz2
invidious-253ea8113bd3afc210e78a56b57e2371c8695dd8.zip
Minor fix for filters and search
-rw-r--r--src/invidious.cr2
-rw-r--r--src/views/search.ecr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index c9486e63..8d3d1894 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -164,7 +164,7 @@ spawn do
end
end
-before_all do |env|
+before_get do |env|
if env.request.cookies["SID"]?
env.set "authorized", true
else
diff --git a/src/views/search.ecr b/src/views/search.ecr
index 462abed4..9f96dd3f 100644
--- a/src/views/search.ecr
+++ b/src/views/search.ecr
@@ -9,7 +9,7 @@
<div style="overflow-wrap:break-word; word-wrap:break-word;" class="h-box">
<a style="width:100%;" href="<%= video["link"] %>">
<img style="width:100%;" src="<%= video["thumbnail"] %>"/>
- <%= video["title"] %>
+ <p><%= video["title"] %></p>
</a>
<p>
<b><a style="width:100%;" href="<%= video["author_url"]%>"><%= video["author"] %></a></b>