From 3131dfc7795e520947a41f2040184cc1c33f9ca1 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Wed, 29 Apr 2015 13:35:43 +0100 Subject: [PATCH] Sometimes there is just no title --- lib/models/article.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/article.js b/lib/models/article.js index 9e7fef1..cfff90f 100644 --- a/lib/models/article.js +++ b/lib/models/article.js @@ -80,7 +80,7 @@ Object.defineProperty(Article.prototype, 'readingTime', { */ Object.defineProperty(Article.prototype, 'headline', { get: function () { - if (this.raw.item.title) { + if (this.raw.item.title && this.raw.item.title.title) { return this.raw.item.title.title.replace('&', '&'); } return false;