From 3b2e142542cf051c89b7a6b678463b0693489b91 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 29 Mar 2020 17:44:45 -0400 Subject: [PATCH] Fix JSON serialization --- src/invidious/views/add_playlist_items.ecr | 6 ++-- src/invidious/views/community.ecr | 16 +++++---- src/invidious/views/components/player.ecr | 12 ++++--- .../views/components/subscribe_widget.ecr | 16 +++++---- src/invidious/views/embed.ecr | 20 ++++++----- src/invidious/views/history.ecr | 6 ++-- src/invidious/views/playlist.ecr | 6 ++-- src/invidious/views/subscriptions.ecr | 6 ++-- src/invidious/views/template.ecr | 10 +++--- src/invidious/views/watch.ecr | 34 ++++++++++--------- 10 files changed, 76 insertions(+), 56 deletions(-) diff --git a/src/invidious/views/add_playlist_items.ecr b/src/invidious/views/add_playlist_items.ecr index dff0b549c..07295c1a9 100644 --- a/src/invidious/views/add_playlist_items.ecr +++ b/src/invidious/views/add_playlist_items.ecr @@ -21,9 +21,11 @@ diff --git a/src/invidious/views/community.ecr b/src/invidious/views/community.ecr index fca8c0b63..69724390b 100644 --- a/src/invidious/views/community.ecr +++ b/src/invidious/views/community.ecr @@ -72,13 +72,15 @@ <% end %> diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 520d72dd3..3c30f69e5 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -37,11 +37,13 @@ diff --git a/src/invidious/views/components/subscribe_widget.ecr b/src/invidious/views/components/subscribe_widget.ecr index 7c579a8a6..ac2fbf1db 100644 --- a/src/invidious/views/components/subscribe_widget.ecr +++ b/src/invidious/views/components/subscribe_widget.ecr @@ -20,14 +20,16 @@ <% end %> <% else %> diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr index ff8277e81..48dbc55f9 100644 --- a/src/invidious/views/embed.ecr +++ b/src/invidious/views/embed.ecr @@ -16,16 +16,18 @@ <%= rendered "components/player" %> diff --git a/src/invidious/views/history.ecr b/src/invidious/views/history.ecr index 2aa8adf71..fe8c70b9e 100644 --- a/src/invidious/views/history.ecr +++ b/src/invidious/views/history.ecr @@ -19,9 +19,11 @@ diff --git a/src/invidious/views/playlist.ecr b/src/invidious/views/playlist.ecr index eff12c48c..ccda94d92 100644 --- a/src/invidious/views/playlist.ecr +++ b/src/invidious/views/playlist.ecr @@ -70,9 +70,11 @@ <% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %> <% end %> diff --git a/src/invidious/views/subscriptions.ecr b/src/invidious/views/subscriptions.ecr index 93c584711..af1d4fbcc 100644 --- a/src/invidious/views/subscriptions.ecr +++ b/src/invidious/views/subscriptions.ecr @@ -46,9 +46,11 @@ diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr index b239d22ae..3a8d47dd8 100644 --- a/src/invidious/views/template.ecr +++ b/src/invidious/views/template.ecr @@ -152,10 +152,12 @@ <% if env.get? "user" %> <% end %> diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 16ac71eb0..2a99dd5b7 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -27,23 +27,25 @@ <% end %>