mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Handle published date for edited community posts
This commit is contained in:
parent
1b3319942e
commit
0f33b1e038
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ private module Parsers
|
|||
comments = item_contents.dig?("actionButtons", "commentActionButtonsRenderer",
|
||||
"replyButton", "buttonRenderer", "text", "simpleText").try { |t| short_text_to_number(t.as_s) } || 0
|
||||
|
||||
published = item_contents["publishedTimeText"]["runs"][0]["text"].try { |t| decode_date(t.as_s) } || Time.local
|
||||
published = item_contents["publishedTimeText"]["runs"][0]["text"].try { |t| decode_date(t.as_s.rstrip(" (edited)")) } || Time.local
|
||||
|
||||
YouTubeStructs::CommunityPost.new({
|
||||
author: author_name,
|
||||
|
|
Loading…
Reference in a new issue