fix: Remove double encoding for OG image URLs (#17872)

* fix: do not use vercel image api for meeting link preview image

* fix

* fix

* remove double encoding

* fix

* fix test

* fix

* fix

* fix test

* fix

* fix

* remove test tag

* fix
This commit is contained in:
Benny Joo authored and GitHub committed 2024-11-27 15:45:54 +00:00
1 parent 999019c6f0
commit a7e99f3674
5 files changed
+13 -18

No files matched your search

@@ -66,9 +66,7 @@ test.describe("User Avatar", async () => {
// yes, OG image URI encodes at multiple places.. don't want to mess with that.
await expect(page.locator('meta[property="og:image"]')).toHaveAttribute(
"content",
new RegExp(
encodeURIComponent(`meetingImage=${encodeURIComponent(`${CAL_URL}/api/avatar/${objectKey}.png`)}`)
)
new RegExp(`meetingImage=${encodeURIComponent(`${CAL_URL}/api/avatar/${objectKey}.png`)}`)
);
});
});