Possible next step after [#5384].
Create moderation mechanism for spam. Some thoughts:
- Moderators need to be able to review stuff that the filter has marked as spam, as well as flag stuff as spam that the filter may have missed.
- In either case, post to the spam service's "submit-ham" or "submit-spam" endpoint if available.
- Email notification to moderators when something is flagged as spam by the filter?
The current spam "filtering" just does logging, and has backends for mollom and akismet. It's set up at
g.spam_checker
The ForgeWiki does a simple check & log which should not be changed.For discussion posts (on any tool), we should take the spam filter service's response and if it is spam, put the comment into moderation directly, even if the tool allows unmoderated posts from the user. However, posts from the project admins & developers should never be marked as spam. It may be useful to store other metadata from the spam service on the comment artifact.
Then in the moderation queue, when a project admin changes a post to spam or approved, we should send feedback to the API endpoint to help train it. Akismet library docs: http://www.voidspace.org.uk/python/akismet_python.html#submit-spam Mollom code: https://github.com/itkovian/PyMollom/blob/master/Mollom.py#L139
Overall, this should be full integration of spam filtering services with the existing comment moderation system.
Created #302: [#5571] Spam moderation: comments (4cp)
Related
Tickets:
#5571Closed #302.
je/42cc_5571
In order to test it you should:
unkoment the following in
Allura/setup.py
$ pip install pymollom akismet (I think it should be added to
requirements-optional.txt
when merged to master)register test accounts for mollom and akismet and set keys in ini file:
mollom:
akismet:
Akismet has a magic phrase for testing that always returns spam: "VIAGRA! LOTS OF VIAGRA!"
Generally good, but there are two issues:
has_access(self, 'unmoderated_post')()
check needs to be restored; spam should be forced into moderation but non-spam should follow the same rules as before.Created #354: [#5571] Followup to spam moderation (1cp)
Related
Tickets:
#5571Fixed that and also rebased on new master (there were some conflicts)
Closed #354.
je/42cc_5571
(forced update)Need to select either Akismet or Mollom and add the appropriate API keys in production.