Also match with HTML in Content
This commit is contained in:
parent
58d0179a35
commit
28e8ce6f78
|
@ -338,7 +338,7 @@ func (b *memoryBackend) ProcessContent(channel, fetchURL, contentType string, bo
|
|||
b.channelAddItem(channel, item)
|
||||
|
||||
// Add items to notifications that match my name and websites
|
||||
if item.Content != nil && len(item.Content.Text) > 0 && nameRegex.MatchString(item.Content.Text) {
|
||||
if item.Content != nil && (len(item.Content.Text) > 0 && nameRegex.MatchString(item.Content.Text) || item.Content != nil && len(item.Content.HTML) > 0 && nameRegex.MatchString(item.Content.HTML)) {
|
||||
b.channelAddItem("notifications", item)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user