From: Mikael Nordfeldth Date: Fri, 23 Jan 2015 10:58:11 +0000 (+0100) Subject: user is a protected property in UAS/AtomUserNoticeFeed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99b1a6f57622099f322b0977c3632924c4df7507;p=quix0rs-gnu-social.git user is a protected property in UAS/AtomUserNoticeFeed The bug made it impossible to backup with Favorite ;) Thanks postblue for reporting. --- diff --git a/plugins/Favorite/FavoritePlugin.php b/plugins/Favorite/FavoritePlugin.php index 017b78d8b9..77f0531609 100644 --- a/plugins/Favorite/FavoritePlugin.php +++ b/plugins/Favorite/FavoritePlugin.php @@ -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) . "'");