Skip to content

Instantly share code, notes, and snippets.

@jakelear
Created August 18, 2014 15:13
Show Gist options
  • Select an option

  • Save jakelear/1df25140352c69799986 to your computer and use it in GitHub Desktop.

Select an option

Save jakelear/1df25140352c69799986 to your computer and use it in GitHub Desktop.
diff --git a/lib/entry_group_auto_populator.rb b/lib/entry_group_auto_populator.rb
index 2d5e5ca..4f5bf54 100644
--- a/lib/entry_group_auto_populator.rb
+++ b/lib/entry_group_auto_populator.rb
@@ -24,7 +24,7 @@ class EntryGroupAutoPopulator
end
# bugzid 161370
- if entry.community.is_a?(Blog) && entry.community.regional_hub
+ if !entry.is_a?(FanPost) && entry.community.is_a?(Blog) && entry.community.regional_hub
groups_to_populate << entry.community.regional_hub.front_page.entry_group
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment