Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #135 from Financial-Times/no-title
Browse files Browse the repository at this point in the history
Sometimes there is just no title
  • Loading branch information
matthew-andrews committed Apr 29, 2015
2 parents 0f64d36 + 3131dfc commit ba6116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba6116c

Please sign in to comment.