mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-30 10:42:53 +00:00
Fix 0 view count on related videos section (#5446)
* Fix 0 view count on related videos * Remove view_count variable since it's unused by Innertube * Remove view_count from specs and API --------- Co-authored-by: Fijxu <fijxu@nadeko.net>
This commit is contained in:
@@ -355,9 +355,8 @@ we're going to need to do it here in order to allow for translations.
|
||||
|
||||
<div class="pure-u-10-24" style="text-align:right">
|
||||
<b class="width:100%"><%=
|
||||
views = rv["view_count"]?.try &.to_i?
|
||||
views ||= rv["view_count_short"]?.try { |x| short_text_to_number(x) }
|
||||
translate_count(locale, "generic_views_count", views || 0, NumberFormatting::Short)
|
||||
views = short_text_to_number(rv["short_view_count"]? || "0")
|
||||
translate_count(locale, "generic_views_count", views, NumberFormatting::Short)
|
||||
%></b>
|
||||
</div>
|
||||
</h5>
|
||||
|
||||
Reference in New Issue
Block a user