[buddypress-trac] [BuddyPress] #4303: Updates to Blog posts are not reflected in the Activity Feed
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Tue Jun 26 20:13:19 UTC 2012
#4303: Updates to Blog posts are not reflected in the Activity Feed
-------------------------+-----------------------------
Reporter: jchew | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Activity | Version: 1.6-beta
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------------
Changes (by boonebgorges):
* status: closed => reopened
* type: defect (bug) => enhancement
* resolution: invalid =>
* milestone: => Future Release
Comment:
> Not to press the issue
Pressing the issue is more than welcome, as long as it's civil :)
The behavior in BP 1.5.x is pretty clearly a bug. Post edits should *not*
be saved as `new_blog_post`, and they should not display the text "Boone
wrote a new blog post...". That's simply incorrect.
However, I do think it's a reasonable suggestion that edits/updates
*should* be recorded. I can imagine lots of cases where this would be
useful. I'm going to reopen this and change it to an enhancement ticket so
that the dev team can discuss it, or someone can write a patch.
In the meantime, if you would like to implement the behavior in a plugin,
here's the strategy. Copy the function `bp_blogs_record_post()`, along
with the associated `add_action()` line, into your own plugin file (or
functions.php, or bp-custom.php). Change the name of the function (don't
forget the `add_action()` call). Then change the `$existing` logic so that
instead of checking whether it's *not* empty, you check whether it *is*:
{{{
if ( empty( $existing['activities'] ) ) {
return;
}
}}}
Then, I'd suggest changing the activity type from `new_blog_post` to
`edited_blog_post`, and change the language to something like "Boone
edited the blog post...".
In the future, we'll investigate whether it makes sense to do something
like this in BP itself. My gut feeling is that we may want to wait until
it's a bit easier to fine-tune the display of the activity stream, because
I have a feeling that showing blog post edits will *not* make sense for
the majority of BP sites.
Thanks for the push ;)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4303#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list