From 99b1a6f57622099f322b0977c3632924c4df7507 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 23 Jan 2015 11:58:11 +0100 Subject: [PATCH] user is a protected property in UAS/AtomUserNoticeFeed The bug made it impossible to backup with Favorite ;) Thanks postblue for reporting. --- plugins/Favorite/FavoritePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) . "'");