fix(route/youtube/community): Handle shared post in Youtube community (#18641)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user