return saved notice to AtomPub for Bookmarks

This commit is contained in:
Evan Prodromou 2010-12-27 22:16:34 -08:00
parent 1cc8be4d8b
commit 4465724ed3

View File

@ -513,11 +513,11 @@ class BookmarkPlugin extends Plugin
return true;
}
function onStartAtomPubNewActivity(&$activity, $user)
function onStartAtomPubNewActivity(&$activity, $user, &$notice)
{
if (self::_isPostBookmark($activity)) {
$options = array('source' => 'atompub');
self::_postBookmark($user->getProfile(), $activity, $options);
$notice = self::_postBookmark($user->getProfile(), $activity, $options);
return false;
}