From: Brion Vibber Date: Fri, 27 Nov 2009 22:52:58 +0000 (-0800) Subject: Fix regression in group posting: bug introduced in commit 1319002e1519fafb0e82fbfd2d2... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2b8a3e3511e55a0aac1e031f64e1dc4d4d547b55;p=quix0rs-gnu-social.git Fix regression in group posting: bug introduced in commit 1319002e1519fafb0e82fbfd2d2723abdb3112e7. Need to use actual profile object rather than an id on a variable that doesn't exist when checking blocks :D --- diff --git a/classes/Notice.php b/classes/Notice.php index 3126cc0647..6610721564 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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; } }