Skip to content

Commit

Permalink
fix: twitter firing all cylinders all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobiah committed Oct 24, 2019
1 parent 1eaf5b4 commit a518ce1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/notifications/Notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ function buildNotifiableData(newData, platform) {
.filter(n => n.stream && between(n.activation, platform)),
syndicateM: newData.syndicateMissions
.filter(m => between(m.activation, platform)),
tweets: newData.twitter ? newData.twitter.filter(t => t) : [],
tweets: newData.twitter
? newData.twitter.filter(t => t && between(t.createdAt, platform))
: [],
updates: newData.news
.filter(n => n.update && !n.stream && between(n.activation, platform)),

Expand Down

0 comments on commit a518ce1

Please sign in to comment.