Commit 44191ac8 authored by mmn's avatar mmn

Faves backed up properly to UAS

parent 4f9b70d5
......@@ -343,7 +343,6 @@ class FavoritePlugin extends ActivityHandlerPlugin
public function onAppendUserActivityStreamObjects(UserActivityStream $uas, array &$objs)
{
$faves = array();
$fave = new Fave();
$fave->user_id = $uas->getUser()->id;
......@@ -353,11 +352,11 @@ class FavoritePlugin extends ActivityHandlerPlugin
if ($fave->find()) {
while ($fave->fetch()) {
$faves[] = clone($fave);
$objs[] = clone($fave);
}
}
return $faves;
return true;
}
public function onStartShowThreadedNoticeTailItems(NoticeListItem $nli, Notice $notice, &$threadActive)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment