fix: score api url

This commit is contained in:
DIYgod
2023-04-01 21:57:54 +01:00
parent 4061690890
commit 2fe0254510
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -10,5 +10,5 @@
43625, 42787, 43258, 33462, 47109, 46939, 45701, 33233, 37346, 40671, 33870,
33421, 51552, 51585, 48937, 51379, 51460, 51084, 51509, 51478, 51639, 48910,
51139, 39329, 51683, 51077, 51374, 49120, 47356, 17096, 50708, 51430, 51935,
51756
51756, 6558
]
+2 -2
View File
@@ -2,7 +2,7 @@ import { ExpandedNote } from "~/lib/types"
import { indexer } from "@crossbell/indexer"
import { toCid } from "~/lib/ipfs-parser"
import { createClient } from "@urql/core"
import { OUR_DOMAIN, SCORE_API_DOMAIN } from "~/lib/env"
import { SITE_URL, SCORE_API_DOMAIN } from "~/lib/env"
const expandPage = async (
page: ExpandedNote,
@@ -41,7 +41,7 @@ const expandPage = async (
const score = (
await (
await fetch(
`${SCORE_API_DOMAIN || OUR_DOMAIN}/api/score?cid=${toCid(
`${SCORE_API_DOMAIN || SITE_URL}/api/score?cid=${toCid(
page.metadata?.uri || "",
)}`,
)
+4 -2
View File
@@ -44,7 +44,8 @@
"50093-1",
"50472-2",
"51726-1",
"51493-1"
"51493-1",
"43000-23"
]
},
{
@@ -113,7 +114,8 @@
"51478-5",
"51478-8",
"51481-1",
"51494-2"
"51494-2",
"51124-29"
]
}
]