From cdf2b288548df43b1b8e0c67375c8c01b94e129c Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 13 Feb 2015 11:39:50 +0100 Subject: [PATCH] UAS protected property user solved with getUser() --- plugins/DirectMessage/DirectMessagePlugin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/DirectMessage/DirectMessagePlugin.php b/plugins/DirectMessage/DirectMessagePlugin.php index f24c043065..6be9fb5083 100644 --- a/plugins/DirectMessage/DirectMessagePlugin.php +++ b/plugins/DirectMessage/DirectMessagePlugin.php @@ -58,16 +58,16 @@ class DirectMessagePlugin extends Plugin public function onAppendUserActivityStreamObjects(UserActivityStream $uas, array &$objs) { // Messages _from_ the user - $msgMap = Message::listGet('from_profile', array($this->user->id)); - $messages = $msgMap[$uas->user->id]; + $msgMap = Message::listGet('from_profile', array($uas->getUser()->id)); + $messages = $msgMap[$uas->getUser()->id]; if (!empty($uas->after)) { $messages = array_filter($messages, array($uas, 'createdAfter')); } $objs[] = $messages; // Messages _to_ the user - $msgMap = Message::listGet('to_profile', array($this->user->id)); - $messages = $msgMap[$uas->user->id]; + $msgMap = Message::listGet('to_profile', array($uas->getUser()->id)); + $messages = $msgMap[$uas->getUser()->id]; if (!empty($uas->after)) { $messages = array_filter($messages, array($uas, 'createdAfter')); }