move signing to take a local actor profile and use local keys
This commit is contained in:
@@ -415,7 +415,7 @@ class OStatusPlugin extends Plugin
|
||||
$act->actor = ActivityObject::fromProfile($subscriber);
|
||||
$act->object = ActivityObject::fromProfile($other);
|
||||
|
||||
$oprofile->notifyActivity($act);
|
||||
$oprofile->notifyActivity($act, $subscriber);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -463,7 +463,7 @@ class OStatusPlugin extends Plugin
|
||||
$act->actor = ActivityObject::fromProfile($profile);
|
||||
$act->object = ActivityObject::fromProfile($other);
|
||||
|
||||
$oprofile->notifyActivity($act);
|
||||
$oprofile->notifyActivity($act, $profile);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -505,7 +505,7 @@ class OStatusPlugin extends Plugin
|
||||
$member->getBestName(),
|
||||
$oprofile->getBestName());
|
||||
|
||||
if ($oprofile->notifyActivity($act)) {
|
||||
if ($oprofile->notifyActivity($act, $member)) {
|
||||
return true;
|
||||
} else {
|
||||
$oprofile->garbageCollect();
|
||||
@@ -555,7 +555,7 @@ class OStatusPlugin extends Plugin
|
||||
$member->getBestName(),
|
||||
$oprofile->getBestName());
|
||||
|
||||
$oprofile->notifyActivity($act);
|
||||
$oprofile->notifyActivity($act, $member);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -598,7 +598,7 @@ class OStatusPlugin extends Plugin
|
||||
$act->actor = ActivityObject::fromProfile($profile);
|
||||
$act->object = ActivityObject::fromNotice($notice);
|
||||
|
||||
$oprofile->notifyActivity($act);
|
||||
$oprofile->notifyActivity($act, $profile);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -642,7 +642,7 @@ class OStatusPlugin extends Plugin
|
||||
$act->actor = ActivityObject::fromProfile($profile);
|
||||
$act->object = ActivityObject::fromNotice($notice);
|
||||
|
||||
$oprofile->notifyActivity($act);
|
||||
$oprofile->notifyActivity($act, $profile);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -731,7 +731,7 @@ class OStatusPlugin extends Plugin
|
||||
$act->object = $act->actor;
|
||||
|
||||
while ($oprofile->fetch()) {
|
||||
$oprofile->notifyDeferred($act);
|
||||
$oprofile->notifyDeferred($act, $profile);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user