Permalink
Browse files

Fixes bug that kept regular blog comments from appering in the activi…

…ty stream. Fixes #77

git-svn-id: http://plugins.svn.wordpress.org/buddypress-docs/trunk@376976 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information...
1 parent f2b8d41 commit 159483cee7cc040c18d7957c2a77b9dd3bb44e27 boonebgorges committed Apr 25, 2011
Showing with 7 additions and 0 deletions.
  1. +4 −0 includes/integration-bp.php
  2. +3 −0 readme.txt
@@ -418,6 +418,10 @@ function post_comment_activity( $comment_id ) {
if ( empty( $doc ) )
return false;
+ // Only continue if this is a BP Docs post
+ if ( $doc->post_type != $bp->bp_docs->post_type_name )
+ return;
+
$doc_id = !empty( $doc->ID ) ? $doc->ID : false;
if ( !$doc_id )
View
@@ -34,6 +34,9 @@ This plugin is in active development. For feature requests and bug reports, visi
== Changelog ==
+= 1.0.7 =
+* Fixes bug that prevented blog comments from being posted to the activity stream
+
= 1.0.6 =
* Fixes bug from previous release that prevented certain templates from loading correctly

0 comments on commit 159483c

Please sign in to comment.