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
This commit is contained in:
Joshua Judson Rosen 2012-07-29 17:54:48 -04:00 committed by Mikael Nordfeldth
parent 90858804bc
commit 8e53eb2b4c

View File

@ -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) {