Skip to content

Commit

Permalink
fix(rss): remove url.toLowerCase() (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp authored Oct 16, 2020
1 parent a7373b4 commit 43934f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/plugin-rss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function apply(ctx: Context, config: Config = {}) {

feeder.on('new-item', async (payload) => {
logger.debug('receive', payload.title)
const source = payload.meta.link.toLowerCase()
const source = payload.meta.link
if (!feedMap[source]) return
const message = `${payload.meta.title} (${payload.author})\n${payload.title}`
await ctx.broadcast([...feedMap[source]], message)
Expand Down Expand Up @@ -106,7 +106,6 @@ export function apply(ctx: Context, config: Config = {}) {
return rss.join('\n')
}

url = url.toLowerCase()
const index = rss.indexOf(url)

if (options.remove) {
Expand Down

0 comments on commit 43934f2

Please sign in to comment.