diff --git a/src/Linkification/Embedding.coffee b/src/Linkification/Embedding.coffee index df2d3e1fd..dac6c1f3d 100644 --- a/src/Linkification/Embedding.coffee +++ b/src/Linkification/Embedding.coffee @@ -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