Skip to content

Commit 1b4ad83

Browse files
committed
fix: revert changes in url since it isn't relevant to relative url issue
1 parent 68934ac commit 1b4ad83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/fedify/src/codegen/type.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ const scalarTypes: Record<string, ScalarType> = {
309309
dataCheck(v) {
310310
return `typeof ${v} === "object" && "@value" in ${v}
311311
&& typeof ${v}["@value"] === "string"
312-
&& ${v}["@value"] !== ""`;
312+
&& ${v}["@value"] !== "" && ${v}["@value"] !== "/"`;
313313
},
314314
decoder(v) {
315-
return `${v}["@value"].startsWith("/") && options.baseUrl ? new URL(options.baseUrl + ${v}["@value"]) : new URL(${v}["@value"])`;
315+
return `new URL(${v}["@value"])`;
316316
},
317317
},
318318
"fedify:publicKey": {

0 commit comments

Comments
 (0)