Skip to content

Commit

Permalink
client-web: tweak link preview
Browse files Browse the repository at this point in the history
  • Loading branch information
franzos committed Sep 29, 2023
1 parent bb0557b commit 2a15503
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions client-web/src/components/event/link-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ import { useEffect, useState } from "react";
import { excerpt } from "../../lib/excerpt";

const fetchProxyData = async (url: string) => {
const response = await fetch(`https://p1.nostrop.com?url=${url}`, {
headers: {
client: "nostrop",
},
});
const response = await fetch(
`https://p1.nostrop.com/fea11fdd-6073-4a6f-b45a-31559c41f9f1?url=${url}`,
{
headers: {
client: "nostrop",
},
}
);

if (!response.ok) {
throw new Error("Failed to fetch data");
Expand Down

0 comments on commit 2a15503

Please sign in to comment.