External Group Blogs bug
-
I’m running wp single with bp 1.2.1 and the latest external group blogs plugin (1.2.1)
At first it fetches the the external rss feed items but after an hour it adds the same items again to the activity stream resulting in a couple of duplicate feed items.
Where can I add something to check for existing records before they are added to the activity stream? I have tried this with no luck.
/* Record or update in activity streams. */
$own=mysql_query(“select * from wp_bp_activity where content=”.$activity_content);
if(mysql_num_rows($own) == 0)
{
groups_record_activity( array(
‘id’ => $id,
‘user_id’ => false,
‘action’ => $activity_action,
‘content’ => $activity_content,
‘primary_link’ => $item[‘link’],
‘type’ => ‘exb’,
‘item_id’ => $group_id,
‘secondary_item_id’ => wp_hash( $post[‘blogurl’] ),
‘recorded_time’ => gmdate( “Y-m-d H:i:s”, $post_date ),
‘hide_sitewide’ => $hide_sitewide
) );
}
- The topic ‘External Group Blogs bug’ is closed to new replies.