fix(route/youtube/community): Handle shared post in Youtube community (#18641)

This commit is contained in:
Qiang Huang
2025-03-19 22:04:49 +08:00
committed by GitHub
parent 8c0458600d
commit cd6780a21d
+1 -1
View File
@@ -47,7 +47,7 @@ async function handler(ctx) {
const items = list
.filter((i) => i.backstagePostThreadRenderer)
.map((item) => {
const post = item.backstagePostThreadRenderer.post.backstagePostRenderer;
const post = item.backstagePostThreadRenderer.post.backstagePostRenderer || item.backstagePostThreadRenderer.post.sharedPostRenderer.originalPost.backstagePostRenderer;
const media = post.backstageAttachment?.postMultiImageRenderer?.images.map((i) => i.backstageImageRenderer.image.thumbnails.pop()) ?? [post.backstageAttachment?.backstageImageRenderer?.image.thumbnails.pop()];
return {
title: post.contentText.runs[0].text,