Rootclaim tweak

This commit is contained in:
NunoSempere 2021-06-27 20:12:46 +02:00
parent 5b92f73747
commit c5bf99cee8

View File

@ -40,7 +40,7 @@ async function fetchAndProcessData() {
"type": "PROBABILITY" "type": "PROBABILITY"
}) })
} }
let claimUrlPath = claim.created_at < "2020" ? "claim" : "analysis" let claimUrlPath = claim.created_at < "2020" ? "claims" : "analysis"
let obj = ({ let obj = ({
"title": toMarkdown(claim.question).replace("\n",""), "title": toMarkdown(claim.question).replace("\n",""),
"url": `https://www.rootclaim.com/${claimUrlPath}/${claim.slug}`, "url": `https://www.rootclaim.com/${claimUrlPath}/${claim.slug}`,