From 8e53eb2b4cddc428f850b53d6caf96528e051376 Mon Sep 17 00:00:00 2001 From: Joshua Judson Rosen Date: Sun, 29 Jul 2012 17:54:48 -0400 Subject: [PATCH] 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 --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5