very weird – i can’t reproduce that. When editing, the correct content shows up? Can you send me your site so I can register and see it in action?
Technically, when passed in the activity_id – the bp_activity_add function will switch to update instead of an insert. the activity_id is taken from $bp->action_variables[0] and then also validated against a nonce on the edit screen. (any chance you have a different url structure?)
@rich!
Thanks for offering to take a look. Here’s a link to the registration page:
http://rspace.org/new-account
Actually – I just registered and posted one update from my profile, then viewed the homepage and your site is actually inserting 2 from the start. (i didn’t even edit yet)
http://rspace.org/members/nuptest/activity/554
http://rspace.org/members/nuptest/activity/555
I just posted another update – which inserted 2 from the start (the ajax only refreshes the page with one but if you manually refresh the page you’ll see both)
http://rspace.org/members/nuptest/activity/556
http://rspace.org/members/nuptest/activity/557
I only made an edit to 557 – and no other duplicates where made after the edit. Looks like you have a bug somewhere else when a new activity status update is made. But this plugin is working fine
Yup, was watching your activity. Never noticed the double activity ’til just after installing your plugin, so I thunk the problem was there. Guess I’ll have to scour deeper.
Thanks for taking a look!
Found the culprit.
After deactivating all plugins except BP, the double entries were still there, so I had a look at files I’ve edited and voilĂ : the problem was in my functions.php. There was an additional call to activity/entry.php… doh! Realized that the function in question was kind of redundant so, after deleting it, problem solved.
Thanks again for your time @rich!