Skip to content

Commit

Permalink
Fix: fallback to provided url
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarvelle committed Feb 14, 2025
1 parent 8fb1f41 commit bd9aee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/externalApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export const fetchOpengraph = async (url: string): Promise<GQLExternalOpengraph
description: ogs.result.ogDescription,
imageUrl: ogs.result.ogImage?.[0]?.url,
imageAlt: ogs.result.ogImage?.[0]?.alt,
url: ogs.result.ogUrl,
url: ogs.result.ogUrl ?? url,
};
};

0 comments on commit bd9aee3

Please sign in to comment.