Skip to content

Commit

Permalink
fix: self link parser
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Dec 24, 2023
1 parent fefdbee commit cef8abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/link-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const isSelfArticleUrl = (url: URL) => {

if (isDev && url.hostname === 'innei.in') return true
return (
(url.hostname === location.hostname || webHost === location.hostname) &&
(url.hostname === location.hostname || webHost === url.hostname) &&
['/posts/', '/notes/'].some((path) => url.pathname.startsWith(path))
)
}
Expand Down

1 comment on commit cef8abc

@vercel
Copy link

@vercel vercel bot commented on cef8abc Dec 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
shiro-innei.vercel.app
springtide.vercel.app
innei.in

Please sign in to comment.