Add mentions to the mentions channel
This commit is contained in:
parent
28e8ce6f78
commit
3bff9eb481
|
|
@ -339,7 +339,7 @@ func (b *memoryBackend) ProcessContent(channel, fetchURL, contentType string, bo
|
||||||
|
|
||||||
// Add items to notifications that match my name and websites
|
// Add items to notifications that match my name and websites
|
||||||
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)) {
|
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)
|
b.channelAddItem("mentions", item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user