We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1930c commit 42de890Copy full SHA for 42de890
src/components/link-preview/open-graph.jsx
@@ -4,6 +4,10 @@ export default function OpenGraphPreview({ url }) {
4
const [data, setData] = useState(null);
5
6
useEffect(() => {
7
+ if (url.startsWith(window.location.origin)) {
8
+ return;
9
+ }
10
+ console.log(url);
11
async function fetchData() {
12
const response = await fetch(url);
13
const html = await response.text();
0 commit comments