WebSTUMP - Bugs: bug #62016, Capture all watch word hits in...
You are not allowed to post comments on this tracker with your current authentication level.
bug #62016: Capture all watch word hits in article review page
Submitter: | Paul Schleck <pschleck> | ||
Submitted: | Thu 10 Feb 2022 04:50:12 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
Fri 11 Feb 2022 11:43:31 PM UTC, comment #1: |
Owen Rees <owenrees> |
Thu 10 Feb 2022 04:50:12 AM UTC, original submission:
Currently, a hit on any word or phrase or pattern in the watch.words.list file configured for a newsgroup results in the article going to manual review. This hit is highlighted in red at the top of the article review page. However, a moderator must be careful to read the entire article for any potential problem words, as STUMP only flags the first hit, not all of them. Capturing all watch words hits in the file would aid moderator productivity and reduce errors. |
Paul Schleck <pschleck> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Powered by Savane 3.13-02a9.
Corresponding source code
I have pushed a highlight-watch-words branch that collects a list of all the watched words, displays the whole list and highlights them in the article.
This is something I had looked at in the past for one of the forked versions of WebSTUMP so I have adapted it to work here.
Since the highlighting wraps HTML around the watched words it has to be done on the HTML escaped lines so the highlight patterns must also be HTML escaped. The only conflict as far as I am aware is that '{' and '}' will be escaped so cannot be used as regex metacharacters in the patterns. I hope not too many moderators are using patterns of that complexity.