Skip to:
Content
Pages
Categories
Search
Top
Bottom

Site Wide activity not recorded for new blog posts

  • Avatar of Westpointer
    westpointer
    Participant

    @westpointer

    Greetings – I updated to bp RC1 yesterday. Now, new blog posts are not showing on site wide activity. If I comment on the post, the comment shows in site wide activity. But, if I delete the comment, it is not deleted from site wide activity.

    Anyone else seeing this behavior?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of Westpointer
    westpointer
    Participant

    @westpointer

    well, a new post is now showing in the site wide feed but it’s got the wrong author. Plus, although the post was added minutes ago, the site wide feed has the post added over 6 days ago in the date_recorded field.

    Avatar of Westpointer
    westpointer
    Participant

    @westpointer

    with latest build new post not showing in site wide activity, although comments on it are.

    Avatar of Westpointer
    westpointer
    Participant

    @westpointer

    I posted this as a ticket (it is a bug) here: http://trac.buddypress.org/ticket/543

    The solution:

    OK, this is a confirmed bug. The post_date reflects the time zone set for the blog which is mountain time. I’m in the eastern time zone so my post was seen by this line of code as 2 hours old as soon as I added the post. We need to off-set for the time zone.

    REPLACE:

    if ( $recorded_post->date_created >= strtotime( "-30 minutes" ) )

    WITH

    if ( $recorded_post->date_created >= (current_time('timestamp') - 30) )

    that will fix the problem! (code in bp-blogs.php)

    Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Wow way to track that one down, super sleuth!

    Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    westpointer, I turned the red light off on this one. You seemed to have solved this. Nice job.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.