From: Joshua Judson Rosen Date: Sun, 29 Jul 2012 21:54:48 +0000 (-0400) Subject: Correct a logic-inverting typo in handling of replies to group-posts. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e53eb2b4cddc428f850b53d6caf96528e051376;p=quix0rs-gnu-social.git Correct a logic-inverting typo in handling of replies to group-posts. The typo causes a tautology, which makes replies to group-posts always (or almost-always) go to the group(s). cf. http://status.net/open-source/issues/3638 --- diff --git a/classes/Notice.php b/classes/Notice.php index 1aba98b7bc..f6b9587c87 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -463,7 +463,7 @@ class Notice extends Managed_DataObject // If the original is private to a group, and notice has no group specified, // make it to the same group(s) - if (empty($groups) && ($reply->scope | Notice::GROUP_SCOPE)) { + if (empty($groups) && ($reply->scope & Notice::GROUP_SCOPE)) { $groups = array(); $replyGroups = $reply->getGroups(); foreach ($replyGroups as $group) {