mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-19 19:37:02 -04:00
dont display sources without an url
This commit is contained in:
parent
2c6387e7d9
commit
fa1129e83a
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ function createWolframPage(context, pod, query, sources){
|
|||
if(pod.value && pod.refs) {
|
||||
for(const r of pod.refs){
|
||||
let src = getWolframSource(r, sources)
|
||||
res.embeds[0].description += citation(r, src.url, src.title)
|
||||
if(src.url) res.embeds[0].description += citation(r, src.url, src.title)
|
||||
}
|
||||
}
|
||||
if(pod.image) res.embeds[0].image = { url: pod.image };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue