mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-27 17:21:19 +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:
@@ -266,7 +266,6 @@ module Invidious::JSONify::APIv1
|
||||
|
||||
json.field "lengthSeconds", rv["length_seconds"]?.try &.to_i
|
||||
json.field "viewCountText", rv["short_view_count"]?
|
||||
json.field "viewCount", rv["view_count"]?.try &.empty? ? nil : rv["view_count"].to_i64
|
||||
json.field "published", rv["published"]?
|
||||
if rv["published"]?.try &.presence
|
||||
json.field "publishedText", translate(locale, "`x` ago", recode_date(Time.parse_rfc3339(rv["published"].to_s), locale))
|
||||
|
||||
Reference in New Issue
Block a user