Don't replace link with title if API doesn't provide title.
This commit is contained in:
parent
d9eb3ae9df
commit
4036c82864
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user