mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Replace comment published with timestamp
This commit is contained in:
parent
0f6fcf5833
commit
f588132cad
1 changed files with 3 additions and 1 deletions
|
@ -1831,8 +1831,10 @@ get "/api/v1/comments/:id" do |env|
|
||||||
json.field "authorUrl", ""
|
json.field "authorUrl", ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
published = decode_date(node_comment["publishedTimeText"]["runs"][0]["text"].as_s.rchop(" (edited)"))
|
||||||
|
|
||||||
json.field "content", content_text
|
json.field "content", content_text
|
||||||
json.field "published", node_comment["publishedTimeText"]["runs"][0]["text"]
|
json.field "published", published.epoch
|
||||||
json.field "likeCount", node_comment["likeCount"]
|
json.field "likeCount", node_comment["likeCount"]
|
||||||
json.field "commentId", node_comment["commentId"]
|
json.field "commentId", node_comment["commentId"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue