Plugin:ActivitySpam

Version: STATUSNET_VERSION

by: Evan Prodromou

source: http://gitorious.org/statusnet-activityspam/statusnet-activityspam

description: Test notices against the Activity Spam service.

This plugin uses the spamicity server to determine if a post is spammy.

Install
This plugin is part of StatusNet 1.1.0. You can enable it by adding this line to your config.php:

addPlugin("ActivitySpam");

Configure
You need a few configuration options to make it work.


 * $config['activityspam']['server']: protocol, hostname and port of the server you're using. Probably "https://spamicity.info/".
 * $config['activityspam']['consumerkey']: The consumer key for your app. You need to get one manually from https://spamicity.info/ or your spam server.
 * $config['activityspam']['secret']: The OAuth secret for your app. You need to get one manually from https://spamicity.info/ or your spam server.
 * $config['activityspam']['hidespam']: Whether to hide detected spam from regular users. Default false; make it true once you're sure the spam filter works OK.

Changelog
2012-03-01

Plugin has been activated on identi.ca. The first version just stores a spam score in the database.

2012-03-07

added a toggle on all notices: You can toggle the "spamminess" of each notice by clicking on the toggle button. "Mark as spam/Clear spam" are the prompts. You must be logged in as Modhelper or Moderator to train spam.
 * dot: no spam
 * exclamation point: spam.

There's also a stream of the latest stuff that's been detected as spam at http://identi.ca/main/spam - You must be logged in as Modhelper or Moderator to review.

2012-03-22

some work done to hide posts that are either from silenced users (usually spammers) or that score badly with our spam filter. moderators will still see spam; I'm working on better UI (maybe crosshatched or dimmed out). One problem is that mod-helpers might see varying UIs. I might need to make some fine-tuning work over the next couple of days. We actually cache visibility info for about 5 minutes, so it takes a few minutes for them to disappear. Another important fix! 

2012-03-24

Notices by silenced users and spam-detected users don't show up in timelines. 

TODO
* Hide spammy posts from non-mods * Add a "this is spam" button to train spam server * Add a "this is not spam" button to train spam server
 * Show the spam score to mods
 * Optional threshold for spam probability
 * the "dot" isn't lining up correctly when the location is long (will be fixed).
 * next step is to integrate with silencing.
 * when a user is silenced, train all their notices as spam.
 * Unsilenced => train as ham.
 * if a user has posted N many spammy notices, they're automatically silenced.