Skip to:
Content

BuddyPress.org

Changeset 386 for trunk/bp-blogs.php


Ignore:
Timestamp:
10/10/2008 06:15:27 AM (13 years ago)
Author:
apeatling
Message:

Fixed #88 and fixed missing username on new blog post activity stream items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs.php

    r375 r386  
    221221           
    222222            $post = BP_Blogs_Post::fetch_post_content($post);
    223 
    224             $content = bp_core_get_userlink($post->post_author_id) . ' ' . __('wrote a new blog post') . ' <a href="' . bp_post_get_permalink( $post, $post->blog_id ) . '">' . $post->post_title . '</a> <span class="time-since">%s</span>';     
     223           
     224            if ( $post->post_type != 'post' || $post->post_status != 'publish' || $post->post_password != '' )
     225                return false;
     226
     227            $content = bp_core_get_userlink($post->post_author) . ' ' . __('wrote a new blog post') . ' <a href="' . bp_post_get_permalink( $post, $post->blog_id ) . '">' . $post->post_title . '</a> <span class="time-since">%s</span>';     
    225228            $content .= '<blockquote>' . bp_create_excerpt($post->post_content) . '</blockquote>';
    226229            return $content;
Note: See TracChangeset for help on using the changeset viewer.