I removed forums so that they don't appear in groups, but I still see the audience tab for forum posts.

Comments

David Lesieur’s picture

Oh, I see... OG Audience should check the 'og_omitted' variable before setting up the audience tab.

pwolanin’s picture

for the 5.x upgrade I used this as the check as to whether to show the tab:

      if (variable_get('og_audience_tab_enable', 1) && $node && !og_is_group_type($node->type) && !og_is_omitted_type($node->type)) {
        if (count($user->og_groups) && (count($node->og_groups) || variable_get('og_audience_allow_add', 1)) && user_access('change audience')) {

The 'og_audience_tab_enable', variable is a setting specific to the 5.x version, and some of the other logic is changed.

drupalzack’s picture

Thanks guys! That's pretty much what I ended up doing without the 5.x specific checks.

gustav’s picture

Version: 4.7.x-1.x-dev » 5.x-1.1
Status: Active » Fixed

I just checked and found that this is fixed in the current version.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

gnosis.kv’s picture

good