Commit 1b4ad836 authored by Jiwon Kwon's avatar Jiwon Kwon
Browse files

fix: revert changes in url since it isn't relevant to relative url issue

parent 68934ac4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -309,10 +309,10 @@ const scalarTypes: Record<string, ScalarType> = {
    dataCheck(v) {
      return `typeof ${v} === "object" && "@value" in ${v}
        && typeof ${v}["@value"] === "string"
        && ${v}["@value"] !== ""`;
        && ${v}["@value"] !== "" && ${v}["@value"] !== "/"`;
    },
    decoder(v) {
      return `${v}["@value"].startsWith("/") && options.baseUrl ? new URL(options.baseUrl + ${v}["@value"]) : new URL(${v}["@value"])`;
      return `new URL(${v}["@value"])`;
    },
  },
  "fedify:publicKey": {