]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Faves backed up properly to UAS
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 13 Feb 2015 10:52:29 +0000 (11:52 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 13 Feb 2015 10:52:29 +0000 (11:52 +0100)
plugins/Favorite/FavoritePlugin.php

index 42598489bbf6c5acffa13ef7c61f939d94e2a3bc..810957c322fbb499f30ce6a2a386f1ee6aa6b821 100644 (file)
@@ -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)