Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

added edge case

Steven Teyc4bb0f41d4e0
diff --git a/pages/api/edge/metatags.ts b/pages/api/edge/metatags.ts
index 1efbb9110c..f27b038112 100644
--- a/pages/api/edge/metatags.ts
+++ b/pages/api/edge/metatags.ts
@@ -49,8 +49,8 @@ export const getMetaTags = async (url: string, ev: NextFetchEvent) => {
attributes.name ||
attributes.property ||
attributes.itemprop ||
- attributes.rel ||
- attributes["http-equiv"];
+ attributes.rel;
+
const content = attributes.content || attributes.href;
if (name === "title") {
@@ -70,7 +70,11 @@ export const getMetaTags = async (url: string, ev: NextFetchEvent) => {
obj["description"] || obj["og:description"] || obj["twitter:description"];
const image =
- obj["og:image"] || obj["twitter:image"] || obj["image_src"] || obj["icon"];
+ obj["og:image"] ||
+ obj["twitter:image"] ||
+ obj["image_src"] ||
+ obj["icon"] ||
+ obj["shortcut icon"];
ev.waitUntil(
recordMetatags(url, title && description && image ? false : true),