From: Evan Prodromou Date: Mon, 7 Feb 2011 19:24:35 +0000 (-0500) Subject: hide feeds from group page if it's private-only X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dbd496f9014adee1d003c08366795a292cf73776;p=quix0rs-gnu-social.git hide feeds from group page if it's private-only --- diff --git a/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php b/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php index e086fe91dc..6a58ec3e21 100644 --- a/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php +++ b/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php @@ -478,6 +478,18 @@ class GroupPrivateMessagePlugin extends Plugin return true; } + function onStartShowExportData($action) + { + if ($action instanceof ShowgroupAction) { + $gps = Group_privacy_settings::forGroup($action->group); + + if ($gps->allow_privacy == Group_privacy_settings::ALWAYS) { + return false; + } + } + return true; + } + function onPluginVersion(&$versions) { $versions[] = array('name' => 'GroupPrivateMessage',