Fixed an issue

This commit is contained in:
RadoslavL
2023-11-14 09:43:52 +02:00
parent 50da6cf3e7
commit 2a6a32e667
2 changed files with 8 additions and 7 deletions

View File

@@ -246,7 +246,7 @@ module Invidious::JSONify::APIv1
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"]?
json.field "publishedTimeText", rv["publishedText"]?
json.field "publishedTimeText", translate(locale, "`x` ago", rv["publishedText"].to_s)
end
end
end