limit pod description to 1000 chars

This commit is contained in:
derpystuff 2023-06-28 21:34:36 +02:00
parent 7a433bbe4b
commit a55819304e

View file

@ -31,7 +31,7 @@ function createWolframPage(context, pod, query, sources){
] ]
} }
if(pod.icon) res.embeds[0].author.iconUrl = pod.icon if(pod.icon) res.embeds[0].author.iconUrl = pod.icon
if(pod.value) res.embeds[0].description = pod.value if(pod.value) res.embeds[0].description = pod.value.subst(0,1000)
if(pod.value && pod.refs) { if(pod.value && pod.refs) {
for(const r of pod.refs){ for(const r of pod.refs){
let src = getWolframSource(r, sources) let src = getWolframSource(r, sources)