From 7986a87b3fe0fc87814d75c16c696c8ee726e7dd Mon Sep 17 00:00:00 2001 From: AirboN Date: Tue, 17 Oct 2017 00:42:26 +0200 Subject: [PATCH 1/2] Fixed issue with undefined author in events --- components/groups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/groups.js b/components/groups.js index 48bc395..9d5c9da 100644 --- a/components/groups.js +++ b/components/groups.js @@ -143,7 +143,7 @@ SteamCommunity.prototype.getAllGroupAnnouncements = function(gid, time, callback headline: announcement.title[0], content: announcement.description[0], date: new Date(announcement.pubDate[0]), - author: announcement.author[0], + author: (typeof announcement.author === 'undefined') ? null : announcement.author[0], aid: splitLink[splitLink.length - 1] } }).filter(function(announcement) { From e0320b27d783592aff35861fd63dd32b3f895bf1 Mon Sep 17 00:00:00 2001 From: AirboN Date: Tue, 17 Oct 2017 00:48:06 +0200 Subject: [PATCH 2/2] Fixed issue with undefined author in events --- components/groups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/groups.js b/components/groups.js index 9d5c9da..4e5ec3b 100644 --- a/components/groups.js +++ b/components/groups.js @@ -143,7 +143,7 @@ SteamCommunity.prototype.getAllGroupAnnouncements = function(gid, time, callback headline: announcement.title[0], content: announcement.description[0], date: new Date(announcement.pubDate[0]), - author: (typeof announcement.author === 'undefined') ? null : announcement.author[0], + author: (typeof announcement.author === 'undefined') ? null : announcement.author[0], aid: splitLink[splitLink.length - 1] } }).filter(function(announcement) {