mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-20 13:14:32 -05:00
Fix description field for /api/v1/videos
This commit is contained in:
parent
14620c32aa
commit
ddd74549fe
@ -262,8 +262,8 @@ struct Video
|
|||||||
generate_storyboards(json, self.storyboards, config, kemal_config)
|
generate_storyboards(json, self.storyboards, config, kemal_config)
|
||||||
end
|
end
|
||||||
|
|
||||||
json.field "description", html_to_content(self.description)
|
json.field "description", html_to_content(self.description).last
|
||||||
json.field "descriptionHtml", self.description
|
json.field "descriptionHtml", html_to_content(self.description).first
|
||||||
json.field "published", self.published.to_unix
|
json.field "published", self.published.to_unix
|
||||||
json.field "publishedText", translate(locale, "`x` ago", recode_date(self.published, locale))
|
json.field "publishedText", translate(locale, "`x` ago", recode_date(self.published, locale))
|
||||||
json.field "keywords", self.keywords
|
json.field "keywords", self.keywords
|
||||||
|
Loading…
Reference in New Issue
Block a user