Ensure iframely fallback is not executed for connected unfurl integration

This commit is contained in:
hmacr committed 2025-04-17 00:52:06 +05:30
1 parent 1e7244c737
commit 03f024af4c
4 files changed
+15 -10

No files matched your search

+2 -2
View File
@@ -206,12 +206,12 @@ export class GitHub {
);
const { data } = await client.requestResource(resource);
if (!data) {
return;
return { error: "Resource not found" };
}
return { ...data, type: resource.type };
} catch (err) {
Logger.warn("Failed to fetch resource from GitHub", err);
return;
return { error: err.message || "Unknown error" };
}
};
}