mirror of
https://github.com/misskey-dev/summerflare.git
synced 2025-04-29 02:37:17 +09:00
fix: missing thumbnail in Amazon Link
This commit is contained in:
parent
1664e9fb16
commit
60507c3a88
@ -14,7 +14,7 @@ import getSensitive from "../general/sensitive";
|
||||
export default function amazon(url: URL, html: HTMLRewriter) {
|
||||
const card = getCard(url, html);
|
||||
const title = getTitle(url, html);
|
||||
const image = getImage(url, html);
|
||||
const thumbnail = getImage(url, html);
|
||||
const player = Promise.all([
|
||||
card,
|
||||
getPlayerUrlGeneral(url, html),
|
||||
@ -44,14 +44,14 @@ export default function amazon(url: URL, html: HTMLRewriter) {
|
||||
|
||||
return Promise.all([
|
||||
title,
|
||||
image,
|
||||
thumbnail,
|
||||
player,
|
||||
description,
|
||||
siteName,
|
||||
favicon,
|
||||
sensitive,
|
||||
]).then(
|
||||
([title, image, player, description, siteName, favicon, sensitive]) => {
|
||||
([title, thumbnail, player, description, siteName, favicon, sensitive]) => {
|
||||
if (title === null) {
|
||||
return null;
|
||||
}
|
||||
@ -60,7 +60,7 @@ export default function amazon(url: URL, html: HTMLRewriter) {
|
||||
}
|
||||
return {
|
||||
title,
|
||||
image,
|
||||
thumbnail,
|
||||
description: title === description ? null : description,
|
||||
player,
|
||||
allow: [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user