mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
RSS: Sort entries in @rss responses as in announces
This commit is contained in:
parent
ac84fa4d68
commit
97d67777d6
@ -674,7 +674,9 @@ class RSS(callbacks.Plugin):
|
||||
n = n or self.registryValue('defaultNumberOfHeadlines', channel, irc.network)
|
||||
entries = list(filter(lambda e:self.should_send_entry(irc.network, channel, e),
|
||||
feed.entries))
|
||||
entries = sort_feed_items(entries, 'newestFirst')
|
||||
entries = entries[:n]
|
||||
entries = sort_feed_items(entries, self.registryValue('sortFeedItems'))
|
||||
headlines = map(lambda e:self.format_entry(irc.network, channel, feed, e, False),
|
||||
entries)
|
||||
sep = self.registryValue('headlineSeparator', channel, irc.network)
|
||||
|
Loading…
Reference in New Issue
Block a user