Browse Source

Use the NextPollTimestampSecs or else we'll resend on /configureService due to JSON key name change

kegan/tests
Kegan Dougal 8 years ago
parent
commit
e35ea2f27c
  1. 2
      src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go

2
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) // 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 // 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. // 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) items = s.newItems(feedURL, feed.Items)
} }

Loading…
Cancel
Save