mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
limit pod description to 1000 chars
This commit is contained in:
parent
7a433bbe4b
commit
a55819304e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue