Skip to content

Commit

Permalink
fix(rss): fix no broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 15, 2020
1 parent 864a03e commit 76690db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-rss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function apply(ctx: Context, config: Config = {}) {
if (url in feedMap) {
feedMap[url].add(groupId)
} else {
feedMap[url] = new Set()
feedMap[url] = new Set([groupId])
feeder.add({ url, refresh })
logger.debug('subscribe', url)
}
Expand Down Expand Up @@ -65,7 +65,7 @@ export function apply(ctx: Context, config: Config = {}) {
}

feeder.on('new-item', async (payload) => {
logger.debug('receive', payload)
logger.debug('receive', payload.title)
const source = payload.meta.link.toLowerCase()
if (!feedMap[source]) return
const message = `${payload.meta.title} (${payload.author})\n${payload.title}`
Expand Down

0 comments on commit 76690db

Please sign in to comment.