mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-08 07:07:17 +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;
|
||||
|
||||
const player =
|
||||
$('meta[property="twitter:player"]').attr('content');
|
||||
|
||||
let description =
|
||||
$('meta[property="og:description"]').attr('content') ||
|
||||
$('meta[property="twitter:description"]').attr('content') ||
|
||||
@ -118,6 +121,7 @@ export default async (url: URL.Url): Promise<Summary> => {
|
||||
icon: icon || null,
|
||||
description: description || null,
|
||||
thumbnail: image || null,
|
||||
player: player || null,
|
||||
sitename: siteName || null
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user