From: Mikael Nordfeldth Date: Fri, 13 Feb 2015 10:52:29 +0000 (+0100) Subject: Faves backed up properly to UAS X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=44191ac81a9a04ea1c2eb7a55285cf3ca2acded0;p=quix0rs-gnu-social.git Faves backed up properly to UAS --- diff --git a/plugins/Favorite/FavoritePlugin.php b/plugins/Favorite/FavoritePlugin.php index 42598489bb..810957c322 100644 --- a/plugins/Favorite/FavoritePlugin.php +++ b/plugins/Favorite/FavoritePlugin.php @@ -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)