Properly attach activityobjects

For some reason they were written to ->object, which is incorrect as
we use the objects[] array (which usually just holds one entry though)
This commit is contained in:
Mikael Nordfeldth 2016-02-23 23:50:57 +01:00
parent 0eb5122817
commit 9319033ff0

View File

@ -669,7 +669,7 @@ class OStatusPlugin extends Plugin
$other->getBestName()); $other->getBestName());
$act->actor = $profile->asActivityObject(); $act->actor = $profile->asActivityObject();
$act->object = $other->asActivityObject(); $act->objects[] = $other->asActivityObject();
$oprofile->notifyActivity($act, $profile); $oprofile->notifyActivity($act, $profile);
@ -707,7 +707,7 @@ class OStatusPlugin extends Plugin
$act->actor = $profile->asActivityObject(); $act->actor = $profile->asActivityObject();
$act->verb = ActivityVerb::JOIN; $act->verb = ActivityVerb::JOIN;
$act->object = $oprofile->asActivityObject(); $act->objects[] = $oprofile->asActivityObject();
$act->time = time(); $act->time = time();
// TRANS: Title for joining a remote groep. // TRANS: Title for joining a remote groep.
@ -761,7 +761,7 @@ class OStatusPlugin extends Plugin
$act->actor = $member->asActivityObject(); $act->actor = $member->asActivityObject();
$act->verb = ActivityVerb::LEAVE; $act->verb = ActivityVerb::LEAVE;
$act->object = $oprofile->asActivityObject(); $act->objects[] = $oprofile->asActivityObject();
$act->time = time(); $act->time = time();
// TRANS: Title for leaving a remote group. // TRANS: Title for leaving a remote group.
@ -807,7 +807,7 @@ class OStatusPlugin extends Plugin
$act->actor = $sub->asActivityObject(); $act->actor = $sub->asActivityObject();
$act->verb = ActivityVerb::FOLLOW; $act->verb = ActivityVerb::FOLLOW;
$act->object = $oprofile->asActivityObject(); $act->objects[] = $oprofile->asActivityObject();
$act->time = time(); $act->time = time();
// TRANS: Title for following a remote list. // TRANS: Title for following a remote list.
@ -859,7 +859,7 @@ class OStatusPlugin extends Plugin
$act->actor = $member->asActivityObject(); $act->actor = $member->asActivityObject();
$act->verb = ActivityVerb::UNFOLLOW; $act->verb = ActivityVerb::UNFOLLOW;
$act->object = $oprofile->asActivityObject(); $act->objects[] = $oprofile->asActivityObject();
$act->time = time(); $act->time = time();
// TRANS: Title for unfollowing a remote list. // TRANS: Title for unfollowing a remote list.
@ -1051,7 +1051,7 @@ class OStatusPlugin extends Plugin
$notice->getUrl()); $notice->getUrl());
$act->actor = $profile->asActivityObject(); $act->actor = $profile->asActivityObject();
$act->object = $notice->asActivityObject(); $act->objects[] = $notice->asActivityObject();
$oprofile->notifyActivity($act, $profile); $oprofile->notifyActivity($act, $profile);
@ -1173,7 +1173,7 @@ class OStatusPlugin extends Plugin
$profile->getBestName()); $profile->getBestName());
$act->actor = $profile->asActivityObject(); $act->actor = $profile->asActivityObject();
$act->object = $act->actor; $act->objects[] = $act->actor;
while ($oprofile->fetch()) { while ($oprofile->fetch()) {
$oprofile->notifyDeferred($act, $profile); $oprofile->notifyDeferred($act, $profile);