use 'system' for activity notice source
This commit is contained in:
parent
3ff0299531
commit
19af3e8ae9
@ -48,6 +48,7 @@ if (!defined('STATUSNET')) {
|
|||||||
class ActivityPlugin extends Plugin
|
class ActivityPlugin extends Plugin
|
||||||
{
|
{
|
||||||
const VERSION = '0.1';
|
const VERSION = '0.1';
|
||||||
|
const SOURCE = 'system';
|
||||||
|
|
||||||
// Flags to switch off certain activity notices
|
// Flags to switch off certain activity notices
|
||||||
public $StartFollowUser = true;
|
public $StartFollowUser = true;
|
||||||
@ -96,7 +97,7 @@ class ActivityPlugin extends Plugin
|
|||||||
|
|
||||||
$notice = Notice::saveNew($user->id,
|
$notice = Notice::saveNew($user->id,
|
||||||
$content,
|
$content,
|
||||||
'activity',
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
'verb' => ActivityVerb::FOLLOW,
|
'verb' => ActivityVerb::FOLLOW,
|
||||||
'object_type' => ActivityObject::PERSON,
|
'object_type' => ActivityObject::PERSON,
|
||||||
@ -129,7 +130,7 @@ class ActivityPlugin extends Plugin
|
|||||||
|
|
||||||
$notice = Notice::saveNew($user->id,
|
$notice = Notice::saveNew($user->id,
|
||||||
$content,
|
$content,
|
||||||
'activity',
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
'uri' => $uri,
|
'uri' => $uri,
|
||||||
'verb' => ActivityVerb::UNFOLLOW,
|
'verb' => ActivityVerb::UNFOLLOW,
|
||||||
@ -164,7 +165,7 @@ class ActivityPlugin extends Plugin
|
|||||||
|
|
||||||
$notice = Notice::saveNew($user->id,
|
$notice = Notice::saveNew($user->id,
|
||||||
$content,
|
$content,
|
||||||
'activity',
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
'uri' => $fave->getURI(),
|
'uri' => $fave->getURI(),
|
||||||
'verb' => ActivityVerb::FAVORITE,
|
'verb' => ActivityVerb::FAVORITE,
|
||||||
@ -200,7 +201,7 @@ class ActivityPlugin extends Plugin
|
|||||||
|
|
||||||
$notice = Notice::saveNew($user->id,
|
$notice = Notice::saveNew($user->id,
|
||||||
$content,
|
$content,
|
||||||
'activity',
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
'uri' => $uri,
|
'uri' => $uri,
|
||||||
'verb' => ActivityVerb::UNFAVORITE,
|
'verb' => ActivityVerb::UNFAVORITE,
|
||||||
@ -237,7 +238,7 @@ class ActivityPlugin extends Plugin
|
|||||||
|
|
||||||
$notice = Notice::saveNew($user->id,
|
$notice = Notice::saveNew($user->id,
|
||||||
$content,
|
$content,
|
||||||
'activity',
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
'uri' => $mem->getURI(),
|
'uri' => $mem->getURI(),
|
||||||
'verb' => ActivityVerb::JOIN,
|
'verb' => ActivityVerb::JOIN,
|
||||||
@ -274,7 +275,7 @@ class ActivityPlugin extends Plugin
|
|||||||
|
|
||||||
$notice = Notice::saveNew($user->id,
|
$notice = Notice::saveNew($user->id,
|
||||||
$content,
|
$content,
|
||||||
'activity',
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
'uri' => $uri,
|
'uri' => $uri,
|
||||||
'verb' => ActivityVerb::LEAVE,
|
'verb' => ActivityVerb::LEAVE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user