Skip to content

Commit

Permalink
Merge pull request tangly1024#1614 from tangly1024/fix/page-cover
Browse files Browse the repository at this point in the history
fix/notion-page-cover
  • Loading branch information
tangly1024 authored Nov 6, 2023
2 parents 13608c6 + 9b6676a commit 56c35d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/notion/mapImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const mapImgUrl = (img, block, type = 'block', from) => {
ret = BLOG.NOTION_HOST + '/image/' + encodeURIComponent(ret) + '?table=' + type + '&id=' + block.id
}

if (!isEmoji(ret)) {
if (!isEmoji(ret) && ret.indexOf('notion.so/images/page-cover') < 0) {
// 随机图片接口优化 防止因url一致而随机结果相同
const separator = ret.includes('?') ? '&' : '?'
// 拼接唯一识别参数,防止请求的图片被缓存
Expand Down

0 comments on commit 56c35d2

Please sign in to comment.