Prevent throwing when poll choices do no have images (#3345)

This commit is contained in:
Emma 2023-03-22 15:03:37 -04:00 committed by GitHub
parent 86962f2802
commit 6513b5d517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ function parseInvidiousCommunityAttachments(data) {
content: data.choices.map(choice => {
return {
text: choice.text,
image: choice.image.map(thumbnail => {
image: choice.image?.map(thumbnail => {
thumbnail.url = youtubeImageUrlToInvidious(thumbnail.url)
return thumbnail
})