Make process*() functions return existing or new notice

This commit is contained in:
Evan Prodromou
2011-07-20 11:33:28 -04:00
parent 0eeb175904
commit 0ad7411343
2 changed files with 30 additions and 23 deletions

View File

@@ -345,7 +345,7 @@ abstract class MicroAppPlugin extends Plugin
*
* @return boolean hook value
*/
function onStartHandleFeedEntryWithProfile($activity, $oprofile)
function onStartHandleFeedEntryWithProfile($activity, $oprofile, &$notice)
{
if ($this->isMyActivity($activity)) {
@@ -364,7 +364,7 @@ abstract class MicroAppPlugin extends Plugin
'source' => 'ostatus');
// $actor is an ostatus_profile
$this->saveNoticeFromActivity($activity, $actor->localProfile(), $options);
$notice = $this->saveNoticeFromActivity($activity, $actor->localProfile(), $options);
return false;
}