From 46a9c933be44c4153b8e41155dfbdb334be87200 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Thu, 4 Dec 2025 12:00:58 -0300 Subject: [PATCH] Fix community posts when there is a unavailable video in a post (#5549) Posts with a video that has been removed returned `ProblematicTimelineItem` type which was not taken in account for community posts. Now community posts with a broken video will not display an embedded video. --- src/invidious/channels/community.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/channels/community.cr b/src/invidious/channels/community.cr index 43843b11..4256230c 100644 --- a/src/invidious/channels/community.cr +++ b/src/invidious/channels/community.cr @@ -143,7 +143,7 @@ def extract_channel_community(items, *, ucid, locale, format, thin_mode, is_sing case attachment.as_h when .has_key?("videoRenderer") parse_item(attachment) - .as(SearchVideo) + .as(SearchVideo | ProblematicTimelineItem) .to_json(locale, json) when .has_key?("backstageImageRenderer") json.object do