Merge pull request #183 from borianm/patch-1

Fix for issue #182
This commit is contained in:
Alex Corn 2017-10-21 16:48:23 -04:00 committed by GitHub
commit 6abb14a9bc

View File

@ -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) {