From e35ea2f27cdeece6f12b8e3d93665360b5736d6b Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 20 Oct 2016 15:08:21 +0100 Subject: [PATCH] Use the NextPollTimestampSecs or else we'll resend on /configureService due to JSON key name change --- src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go index 484a19c..1533e86 100644 --- a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go +++ b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go @@ -231,7 +231,7 @@ func (s *rssBotService) queryFeed(feedURL string) (*gofeed.Feed, []gofeed.Item, // Work out which items are new, if any (based on the last updated TS we have) // If the TS is 0 then this is the first ever poll, so let's not send 10s of events // into the room and just do new ones from this point onwards. - if s.Feeds[feedURL].FeedUpdatedTimestampSecs != 0 { + if s.Feeds[feedURL].NextPollTimestampSecs != 0 { items = s.newItems(feedURL, feed.Items) }