]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
user is a protected property in UAS/AtomUserNoticeFeed
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 23 Jan 2015 10:58:11 +0000 (11:58 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 23 Jan 2015 10:58:42 +0000 (11:58 +0100)
The bug made it impossible to backup with Favorite ;)
Thanks postblue for reporting.

plugins/Favorite/FavoritePlugin.php

index 017b78d8b9c366e24f0673ca2fa11236ec6471e2..77f0531609d07af1adafdfa8c48aafa3646ad3f1 100644 (file)
@@ -353,7 +353,7 @@ class FavoritePlugin extends ActivityHandlerPlugin
     {
         $faves = array();
         $fave = new Fave();
-        $fave->user_id = $uas->user->id;
+        $fave->user_id = $uas->getUser()->id;
 
         if (!empty($uas->after)) {
             $fave->whereAdd("modified > '" . common_sql_date($uas->after) . "'");