mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
Merge pull request #272 from decaf-dev/fix-bilibili-link-size
fix: correct size of bilibili links
This commit is contained in:
commit
4ac90ae147
2 changed files with 10 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -104,6 +104,6 @@
|
|||
"feed"
|
||||
],
|
||||
"configDir": ".vaultexplorer",
|
||||
"pluginVersion": "1.34.3",
|
||||
"pluginVersion": "1.35.0",
|
||||
"logLevel": "trace"
|
||||
}
|
||||
Loading…
Reference in a new issue