user is a protected property in UAS/AtomUserNoticeFeed

The bug made it impossible to backup with Favorite ;)
Thanks postblue for reporting.
This commit is contained in:
Mikael Nordfeldth 2015-01-23 11:58:11 +01:00
parent 9f87359d04
commit 99b1a6f576
1 changed files with 1 additions and 1 deletions

View 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) . "'");