Merge branch 'fix/keyword-filter' into 'develop'
Also apply keyword filter to subjects See merge request pleroma/pleroma-fe!887
This commit is contained in:
commit
e448950023
|
@ -110,8 +110,9 @@ const Status = {
|
||||||
},
|
},
|
||||||
muteWordHits () {
|
muteWordHits () {
|
||||||
const statusText = this.status.text.toLowerCase()
|
const statusText = this.status.text.toLowerCase()
|
||||||
|
const statusSummary = this.status.summary.toLowerCase()
|
||||||
const hits = filter(this.muteWords, (muteWord) => {
|
const hits = filter(this.muteWords, (muteWord) => {
|
||||||
return statusText.includes(muteWord.toLowerCase())
|
return statusText.includes(muteWord.toLowerCase()) || statusSummary.includes(muteWord.toLowerCase())
|
||||||
})
|
})
|
||||||
|
|
||||||
return hits
|
return hits
|
||||||
|
|
Loading…
Reference in New Issue