From 41e8a3b7843868ff2eac8f85b44aa3bd4a9c7f69 Mon Sep 17 00:00:00 2001 From: John Jones Date: Thu, 4 Jan 2018 09:57:38 -0500 Subject: [PATCH] rss slicing at wrong point in execution --- package.json | 2 +- src/lib/services/RSS.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 356befb..b776ed2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "inbrief", - "version": "2.0.0-alpha.10", + "version": "2.0.0-alpha.11", "author": "John Jones ", "description": " InBrief is a personal briefing app and dashboard.", "private": true, diff --git a/src/lib/services/RSS.js b/src/lib/services/RSS.js index 2e97a78..59469e7 100644 --- a/src/lib/services/RSS.js +++ b/src/lib/services/RSS.js @@ -64,7 +64,7 @@ class RSS extends Service { }) return { 'title': set.title, - 'items': items.map((item) => { + 'items': items.slice(0, this.config.max).map((item) => { return { 'title': item.title, 'date': item.pubDate, @@ -88,7 +88,7 @@ class RSS extends Service { arraysOfItems.forEach((_items) => { _items.forEach((item) => items.push(item)) }) - return items.slice(0, this.config.max) + return items }) }