From 303208003b4e8ee297ab7212832126acbc4acded Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Sun, 30 Jun 2024 19:28:13 +0800 Subject: [PATCH] fix: the invalid share link for images. --- src/components/like/LikeShare.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/like/LikeShare.astro b/src/components/like/LikeShare.astro index 26bbd94..72e8322 100644 --- a/src/components/like/LikeShare.astro +++ b/src/components/like/LikeShare.astro @@ -13,14 +13,14 @@ const { post } = Astro.props; const postURL = urlJoin(options.website, post.permalink); const qq = querystring.stringify({ url: postURL, - pics: urlJoin(options.website, post.cover.src), + pics: post.cover.src, summary: post.summary, }); const weibo = querystring.stringify({ url: postURL, type: 'button', language: 'zh_cn', - pic: urlJoin(options.website, post.cover.src), + pic: post.cover.src, searchPic: true, title: `【${post.title}】${post.summary}`, });