Skip to content

Commit

Permalink
fix edge case for getting metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
yxshv committed Apr 13, 2024
1 parent 68ee684 commit 2b926ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/src/server/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export async function getMetaData(url: string) {
let favicon = _favicon.trim().length > 0 ? _favicon.trim() : 'https://supermemory.dhr.wtf/web.svg'
if (favicon.startsWith("/")) {
favicon = baseUrl + favicon
} else if (favicon.startsWith("./")) {
favicon = baseUrl + favicon.slice(1)
}

// Prepare the metadata object
Expand Down

0 comments on commit 2b926ba

Please sign in to comment.