mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-22 16:29:10 -04:00
Handle published date for edited community posts
This commit is contained in:
parent
1b3319942e
commit
0f33b1e038
@ -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…
x
Reference in New Issue
Block a user