Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决复制别人的图片,改成自己域名。导致404的错误 #61

Closed
wants to merge 2 commits into from

Conversation

MicroMatrixOrg
Copy link

function/file/[id].jsimgRecord === null || imgRecord?.metadata === null 此处的条件改成imgRecord === null && imgRecord?.metadata === null

@MarSeventh
Copy link
Owner

imgRecord === null实际不会出现(之前没有删),当KV中不存在这个记录时imgRecord依然是一个对象,也就是说修改后这个表达式恒为假。
如果你指的是以前telegraph那种根据后面id进行判断的图片,想要直接换成自己的域名,唯一的方法就是把这个判断和404的返回值整个去掉,只留下后面500的判断。

@MarSeventh MarSeventh closed this Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants