forked from GNUsocial/gnu-social
actions are directed to affected group or person
This commit is contained in:
parent
19af3e8ae9
commit
3b4d3c6ac3
@ -99,6 +99,7 @@ class ActivityPlugin extends Plugin
|
|||||||
$content,
|
$content,
|
||||||
ActivityPlugin::SOURCE,
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
|
'replies' => array($other->getUri()),
|
||||||
'verb' => ActivityVerb::FOLLOW,
|
'verb' => ActivityVerb::FOLLOW,
|
||||||
'object_type' => ActivityObject::PERSON,
|
'object_type' => ActivityObject::PERSON,
|
||||||
'uri' => $sub->uri));
|
'uri' => $sub->uri));
|
||||||
@ -132,6 +133,7 @@ class ActivityPlugin extends Plugin
|
|||||||
$content,
|
$content,
|
||||||
ActivityPlugin::SOURCE,
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
|
'replies' => array($other->getUri()),
|
||||||
'uri' => $uri,
|
'uri' => $uri,
|
||||||
'verb' => ActivityVerb::UNFOLLOW,
|
'verb' => ActivityVerb::UNFOLLOW,
|
||||||
'object_type' => ActivityObject::PERSON));
|
'object_type' => ActivityObject::PERSON));
|
||||||
@ -167,6 +169,7 @@ class ActivityPlugin extends Plugin
|
|||||||
$content,
|
$content,
|
||||||
ActivityPlugin::SOURCE,
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
|
'replies' => array($author->getUri()),
|
||||||
'uri' => $fave->getURI(),
|
'uri' => $fave->getURI(),
|
||||||
'verb' => ActivityVerb::FAVORITE,
|
'verb' => ActivityVerb::FAVORITE,
|
||||||
'object_type' => (($notice->verb == ActivityVerb::POST) ?
|
'object_type' => (($notice->verb == ActivityVerb::POST) ?
|
||||||
@ -203,6 +206,7 @@ class ActivityPlugin extends Plugin
|
|||||||
$content,
|
$content,
|
||||||
ActivityPlugin::SOURCE,
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
|
'replies' => array($author->getUri()),
|
||||||
'uri' => $uri,
|
'uri' => $uri,
|
||||||
'verb' => ActivityVerb::UNFAVORITE,
|
'verb' => ActivityVerb::UNFAVORITE,
|
||||||
'object_type' => (($notice->verb == ActivityVerb::POST) ?
|
'object_type' => (($notice->verb == ActivityVerb::POST) ?
|
||||||
@ -240,6 +244,7 @@ class ActivityPlugin extends Plugin
|
|||||||
$content,
|
$content,
|
||||||
ActivityPlugin::SOURCE,
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
|
'groups' => array($group->id),
|
||||||
'uri' => $mem->getURI(),
|
'uri' => $mem->getURI(),
|
||||||
'verb' => ActivityVerb::JOIN,
|
'verb' => ActivityVerb::JOIN,
|
||||||
'object_type' => ActivityObject::GROUP));
|
'object_type' => ActivityObject::GROUP));
|
||||||
@ -277,6 +282,7 @@ class ActivityPlugin extends Plugin
|
|||||||
$content,
|
$content,
|
||||||
ActivityPlugin::SOURCE,
|
ActivityPlugin::SOURCE,
|
||||||
array('rendered' => $rendered,
|
array('rendered' => $rendered,
|
||||||
|
'groups' => array($group->id),
|
||||||
'uri' => $uri,
|
'uri' => $uri,
|
||||||
'verb' => ActivityVerb::LEAVE,
|
'verb' => ActivityVerb::LEAVE,
|
||||||
'object_type' => ActivityObject::GROUP));
|
'object_type' => ActivityObject::GROUP));
|
||||||
|
Loading…
Reference in New Issue
Block a user