Faves backed up properly to UAS

This commit is contained in:
Mikael Nordfeldth 2015-02-13 11:52:29 +01:00
parent 4f9b70d51f
commit 44191ac81a
1 changed files with 2 additions and 3 deletions

View File

@ -343,7 +343,6 @@ class FavoritePlugin extends ActivityHandlerPlugin
public function onAppendUserActivityStreamObjects(UserActivityStream $uas, array &$objs) public function onAppendUserActivityStreamObjects(UserActivityStream $uas, array &$objs)
{ {
$faves = array();
$fave = new Fave(); $fave = new Fave();
$fave->user_id = $uas->getUser()->id; $fave->user_id = $uas->getUser()->id;
@ -353,11 +352,11 @@ class FavoritePlugin extends ActivityHandlerPlugin
if ($fave->find()) { if ($fave->find()) {
while ($fave->fetch()) { while ($fave->fetch()) {
$faves[] = clone($fave); $objs[] = clone($fave);
} }
} }
return $faves; return true;
} }
public function onStartShowThreadedNoticeTailItems(NoticeListItem $nli, Notice $notice, &$threadActive) public function onStartShowThreadedNoticeTailItems(NoticeListItem $nli, Notice $notice, &$threadActive)