mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-11 08:37:19 +09:00
Update general.ts
This commit is contained in:
parent
b994fd39d9
commit
52b26abfbd
@ -49,6 +49,9 @@ export default async (url: URL.Url): Promise<Summary> => {
|
|||||||
|
|
||||||
image = image ? URL.resolve(url.href, image) : null;
|
image = image ? URL.resolve(url.href, image) : null;
|
||||||
|
|
||||||
|
const player =
|
||||||
|
$('meta[property="twitter:player"]').attr('content');
|
||||||
|
|
||||||
let description =
|
let description =
|
||||||
$('meta[property="og:description"]').attr('content') ||
|
$('meta[property="og:description"]').attr('content') ||
|
||||||
$('meta[property="twitter:description"]').attr('content') ||
|
$('meta[property="twitter:description"]').attr('content') ||
|
||||||
@ -118,6 +121,7 @@ export default async (url: URL.Url): Promise<Summary> => {
|
|||||||
icon: icon || null,
|
icon: icon || null,
|
||||||
description: description || null,
|
description: description || null,
|
||||||
thumbnail: image || null,
|
thumbnail: image || null,
|
||||||
|
player: player || null,
|
||||||
sitename: siteName || null
|
sitename: siteName || null
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user