Bug #7683
closedPosts from Group Sites Appear Twice in the Recent Posts widget on the Commons Homepage
0%
Description
If a new post is published to a site attached to a group, the post appears twice in the Recent Posts widget on the homepage, eating up real estate. Might we exclude the notification from the group?
Files
Updated by Boone Gorges almost 8 years ago
- Category name set to Blogs (BuddyPress)
- Assignee set to Boone Gorges
- Target version set to 1.10.11
This shouldn't be happening, and I can't reproduce it in some basic tests. Writing a blog post creates a new_blog_post activity item; if bp-groupblog detects that the activity item is associated with a groupblog post, it updates the activity item to be new_groupblog_post. In this case, there's both a new_blog_post and new_groupblog_post activity item. I'll dig a bit more in the upcoming days to see if I can figure out why this might happen in some cases.
Updated by Boone Gorges almost 8 years ago
- Target version changed from 1.10.11 to 1.10.12
Updated by Boone Gorges almost 8 years ago
- Target version changed from 1.10.12 to 1.10.13
Updated by Boone Gorges almost 8 years ago
- Status changed from New to Resolved
I tracked down the issue. It has to do with post edits. When a groupblog post is edited, the groupblog plugin attempts to locate and update the existing "new_groupblog_post" activity item instead of creating a new one. There's a filter that allows this matching process to be skipped, which we'd activated before BP's site-activity system was rewritten in BP 2.2 or so. I've rolled back our use of this filter, so that bp-groupblog can run its matching properly. This prevents duplicates on post edit. https://github.com/cuny-academic-commons/cac/commit/44973c0b679da4f602f7ecf959d8c410c2a26351