]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix regression in group posting: bug introduced in commit 1319002e1519fafb0e82fbfd2d2...
authorBrion Vibber <brion@pobox.com>
Fri, 27 Nov 2009 22:52:58 +0000 (14:52 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 27 Nov 2009 22:54:55 +0000 (14:54 -0800)
classes/Notice.php

index 3126cc064764c9b8adc65216aea6010ea681018e..6610721564ff45ee19dca9714035fb3de0e82664 100644 (file)
@@ -922,13 +922,14 @@ class Notice extends Memcached_DataObject
         }
 
         $groups = $this->saveGroups();
+        $profile = $this->getProfile();
 
         foreach ($groups as $group) {
             $users = $group->getUserMembers();
             foreach ($users as $id) {
                 if (!array_key_exists($id, $ni)) {
                     $user = User::staticGet('id', $id);
-                    if (!$user->hasBlocked($notice->profile_id)) {
+                    if (!$user->hasBlocked($profile)) {
                         $ni[$id] = NOTICE_INBOX_SOURCE_GROUP;
                     }
                 }