Don't replace link with title if API doesn't provide title.

This commit is contained in:
ccd0 2020-03-29 17:38:18 -07:00
parent d9eb3ae9df
commit 4036c82864

View File

@ -222,7 +222,10 @@ Embedding =
switch status
when 200, 304
text = service.text req.response, uid
Embedding.cache.set data, text
if typeof text is 'string'
Embedding.cache.set data, text
else
text = link.textContent
when 404
text = "Not Found"
when 403