Merge pull request #272 from decaf-dev/fix-bilibili-link-size

fix: correct size of bilibili links
This commit is contained in:
DecafDev 2024-07-26 23:41:32 -06:00 committed by GitHub
commit 4ac90ae147
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -102,6 +102,15 @@ export const fetchSocialImage = async (url: string) => {
imageUrl = `https://${imageUrl}`;
}
//Handle edge case where the url ends with @100w_100h_1c
//See issue #265
if (imageUrl.endsWith("@100w_100h_1c.png")) {
imageUrl = imageUrl.replace(
/@100w_100h_1c.png$/,
"@425w_150h_1c.png"
);
}
Logger.debug(
{
fileName: "social-media-image.ts",

View file

@ -104,6 +104,6 @@
"feed"
],
"configDir": ".vaultexplorer",
"pluginVersion": "1.34.3",
"pluginVersion": "1.35.0",
"logLevel": "trace"
}