Commit e4489500 authored by kaniini's avatar kaniini

Merge branch 'fix/keyword-filter' into 'develop'

Also apply keyword filter to subjects

See merge request pleroma/pleroma-fe!887
parents 9c2c0099 fb9f254f
......@@ -110,8 +110,9 @@ const Status = {
},
muteWordHits () {
const statusText = this.status.text.toLowerCase()
const statusSummary = this.status.summary.toLowerCase()
const hits = filter(this.muteWords, (muteWord) => {
return statusText.includes(muteWord.toLowerCase())
return statusText.includes(muteWord.toLowerCase()) || statusSummary.includes(muteWord.toLowerCase())
})
return hits
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment