Skip to content

Commit ba37259

Browse files
committed
Also propagate changes to watch ECR page
1 parent eca8d2e commit ba37259

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/invidious/views/watch.ecr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,11 @@ we're going to need to do it here in order to allow for translations.
321321
</div>
322322
323323
<div class="pure-u-10-24" style="text-align:right">
324-
<% if views = rv["short_view_count_text"]?.try &.delete(", views watching") %>
325-
<% if !views.empty? %>
326-
<b class="width:100%"><%= translate_count(locale, "generic_views_count", views.to_i? || 0) %></b>
327-
<% end %>
328-
<% end %>
324+
<b class="width:100%"><%=
325+
views = rv["view_count"]?.try &.to_i?
326+
views ||= rv["view_count_short"]?.try { |x| short_text_to_number(x) }
327+
translate_count(locale, "generic_views_count", views || 0, NumberFormatting::Short)
328+
%></b>
329329
</div>
330330
</h5>
331331
</a>

0 commit comments

Comments
 (0)