]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
UAS protected property user solved with getUser()
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 13 Feb 2015 10:39:50 +0000 (11:39 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 13 Feb 2015 10:39:50 +0000 (11:39 +0100)
plugins/DirectMessage/DirectMessagePlugin.php

index f24c043065a9eb5d2853af5535f1636db9d6ca67..6be9fb508312caf4f8a5e37527013c042acc239b 100644 (file)
@@ -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'));
         }