class ActivityPlugin extends Plugin
{
const VERSION = '0.1';
+ const SOURCE = 'system';
// Flags to switch off certain activity notices
public $StartFollowUser = true;
$notice = Notice::saveNew($user->id,
$content,
- 'activity',
+ ActivityPlugin::SOURCE,
array('rendered' => $rendered,
'verb' => ActivityVerb::FOLLOW,
'object_type' => ActivityObject::PERSON,
$notice = Notice::saveNew($user->id,
$content,
- 'activity',
+ ActivityPlugin::SOURCE,
array('rendered' => $rendered,
'uri' => $uri,
'verb' => ActivityVerb::UNFOLLOW,
$notice = Notice::saveNew($user->id,
$content,
- 'activity',
+ ActivityPlugin::SOURCE,
array('rendered' => $rendered,
'uri' => $fave->getURI(),
'verb' => ActivityVerb::FAVORITE,
$notice = Notice::saveNew($user->id,
$content,
- 'activity',
+ ActivityPlugin::SOURCE,
array('rendered' => $rendered,
'uri' => $uri,
'verb' => ActivityVerb::UNFAVORITE,
$notice = Notice::saveNew($user->id,
$content,
- 'activity',
+ ActivityPlugin::SOURCE,
array('rendered' => $rendered,
'uri' => $mem->getURI(),
'verb' => ActivityVerb::JOIN,
$notice = Notice::saveNew($user->id,
$content,
- 'activity',
+ ActivityPlugin::SOURCE,
array('rendered' => $rendered,
'uri' => $uri,
'verb' => ActivityVerb::LEAVE,