- 🇳🇱Netherlands Jan-E
FWIW: I re-applied patch #8 ✨ Filter by member-state in rules action "Get group members from group audience" Needs work to OG 7.x-2.11.
Currently when using Rules with OG, if use the action 'Get group members from group audience' we will get a list of members which includes both pending and blocked users.
If we are using this action as part of a rule to send out content notifications, then this as bad as these notifications will be going to blocked and pending members. It's doubly bad if this is a private group.
I note in og_rules_action_info()
that this 'todo' has been noted:
function og_rules_action_info() {
$items = array();
$items['og_get_members'] = array(
'label' => t('Get group members from group audience'),
'group' => t('Organic groups'),
'parameter' => array(
'group_content' => array(
'type' => 'entity',
'label' => t('Group content'),
'description' => t('The group content determining the group audience.'),
),
// @todo: Add option to filter by member-state?
),
'provides' => array(
'group_members' => array('type' => 'list<user>', 'label' => t('List of group members')),
),
'base' => 'og_rules_get_members',
'access callback' => 'og_rules_integration_access',
);
Has there been any work towards completing this todo? If not, I'm happy to have a stab. Any pointers as to how best to go about this?
Needs work
2.0
og.module
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
FWIW: I re-applied patch #8 ✨ Filter by member-state in rules action "Get group members from group audience" Needs work to OG 7.x-2.11.