From 10abcd519f019627823e186ef5ca1a95b6ccc8e1 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 7 Mar 2019 13:34:33 -0600 Subject: [PATCH] Add RSS alternate to channel and subscription pages --- src/invidious.cr | 1 + src/invidious/views/channel.ecr | 1 + src/invidious/views/subscriptions.ecr | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index bbf9b4c9..f4f84e86 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1880,6 +1880,7 @@ get "/feed/subscriptions" do |env| user = user.as(User) sid = sid.as(String) preferences = user.preferences + token = user.token if preferences.unseen_only env.set "show_watched", true diff --git a/src/invidious/views/channel.ecr b/src/invidious/views/channel.ecr index 897c2b3a..5d635b4e 100644 --- a/src/invidious/views/channel.ecr +++ b/src/invidious/views/channel.ecr @@ -1,5 +1,6 @@ <% content_for "header" do %> <%= author %> - Invidious + <% end %>
diff --git a/src/invidious/views/subscriptions.ecr b/src/invidious/views/subscriptions.ecr index f1b72aaa..744f77a0 100644 --- a/src/invidious/views/subscriptions.ecr +++ b/src/invidious/views/subscriptions.ecr @@ -1,5 +1,6 @@ <% content_for "header" do %> <%= translate(locale, "Subscriptions") %> - Invidious + <% end %> <%= rendered "components/feed_menu" %> @@ -17,7 +18,7 @@

- +