From 0f33b1e0380ce95c97c882d3ca63f5e2a339d06b Mon Sep 17 00:00:00 2001 From: syeopite Date: Tue, 27 Jul 2021 00:21:43 -0700 Subject: [PATCH] Handle published date for edited community posts --- src/invidious/helpers/extractors.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/helpers/extractors.cr b/src/invidious/helpers/extractors.cr index 9bb80f6d..028f4f92 100644 --- a/src/invidious/helpers/extractors.cr +++ b/src/invidious/helpers/extractors.cr @@ -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,