Compare commits

...

2 Commits

Author SHA1 Message Date
Fijxu
46a9c933be 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.
2025-12-04 12:00:58 -03:00
Fijxu
48765f759d chore: Update shard.yml to use SPDX license identifier (#5552) 2025-12-04 11:59:55 -03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ development_dependencies:
crystal: ">= 1.10.0, < 2.0.0"
license: AGPLv3
license: AGPL-3.0-only
repository: https://github.com/iv-org/invidious
homepage: https://invidious.io

View File

@@ -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