Skip to:
Content

BuddyPress.org

Changeset 2985


Ignore:
Timestamp:
05/04/2010 12:00:11 AM (14 years ago)
Author:
apeatling
Message:

Fixes #2361

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-blogs.php

    r2974 r2985  
    375375
    376376    if ( 'publish' == $post->post_status && '' == $post->post_password ) {
    377         bp_blogs_update_blogmeta( $recorded_post->blog_id, 'last_activity', gmdate( "Y-m-d H:i:s" ) );
    378 
    379377        if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
    380378            /* Record this in activity streams */
     
    394392                'recorded_time' => $post->post_date_gmt
    395393            ));
     394
     395            bp_blogs_update_blogmeta( $recorded_post->blog_id, 'last_activity', gmdate( "Y-m-d H:i:s" ) );
    396396        }
    397397    } else
     
    442442            'recorded_time' => $comment->comment_date_gmt
    443443        ) );
    444     }
    445 
    446     bp_blogs_update_blogmeta( $blog_id, 'last_activity', gmdate( "Y-m-d H:i:s" ) );
     444
     445        bp_blogs_update_blogmeta( $blog_id, 'last_activity', gmdate( "Y-m-d H:i:s" ) );
     446    }
    447447
    448448    return $recorded_comment;
Note: See TracChangeset for help on using the changeset viewer.