From fa2ba807a3ad16b3fd84bb24eb4610ff3c397063 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 16 Aug 2018 13:11:38 -0500 Subject: [PATCH] Remove 'engage types' --- src/invidious.cr | 5 ----- src/invidious/views/watch.ecr | 3 --- 2 files changed, 8 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 2f39862c4..616af0197 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -266,11 +266,6 @@ get "/watch" do |env| rating = video.info["avg_rating"].to_f64 engagement = ((video.dislikes.to_f + video.likes.to_f)/video.views * 100) - if video.info["enabled_engage_types"]? - engage_types = video.info["enabled_engage_types"].split(",") - engage_types = engage_types.sort_by { |a| a.to_i }.join(", ") - end - templated "watch" end diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 03e40af65..cd757f5cb 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -211,9 +211,6 @@ get_youtube_comments(); <% end %>

<% end %> - <% if engage_types %> -

Engage Types: <%= engage_types %>

- <% end %>