fix: misskey-dev/summaly compatibility

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-11-03 18:26:35 +09:00
parent 2897001d02
commit 359e0134c0
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
3 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,7 @@ export default function amazon(url: URL, html: HTMLRewriter) {
image, image,
description: title === description ? null : description, description: title === description ? null : description,
player, player,
allow: [],
sitename: siteName, sitename: siteName,
icon: favicon, icon: favicon,
sensitive, sensitive,

View File

@ -64,6 +64,7 @@ export default function general(url: URL, html: HTMLRewriter) {
thumbnail: image, thumbnail: image,
description: title === description ? null : description, description: title === description ? null : description,
player, player,
allow: [],
sitename: siteName, sitename: siteName,
icon: favicon, icon: favicon,
sensitive, sensitive,

View File

@ -18,6 +18,7 @@ export default async function wikipedia(url: URL, html: HTMLRewriter) {
width: null, width: null,
height: null, height: null,
}, },
allow: [],
sitename: "Wikipedia", sitename: "Wikipedia",
url: url.href, url: url.href,
}; };