Skip to content

Commit

Permalink
Don't autofollow when a user is added as a Reader.
Browse files Browse the repository at this point in the history
See #7.
  • Loading branch information
boonebgorges committed Nov 8, 2015
1 parent a515ef6 commit ef1da7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/hooks-buddypress-follow.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/** FOLLOW API ***********************************************************/

add_action( 'bp_activity_post_type_published', 'cacsp_auto_follow_on_new_paper', 10, 3 );
add_action( 'cacsp_added_reader_to_paper', 'cacsp_auto_follow_for_new_reader', 10, 2 );
//add_action( 'cacsp_added_reader_to_paper', 'cacsp_auto_follow_for_new_reader', 10, 2 );

/**
* Automatically provision users to follow their own written paper.
Expand Down Expand Up @@ -53,6 +53,8 @@ function cacsp_auto_follow_on_new_paper( $activity_id, $post, $activity_args ) {
/**
* Automatically provision readers to follow a paper.
*
* Disabled for the moment.
*
* @param CACSP_Paper $paper
* @param int $user_id
*/
Expand Down

0 comments on commit ef1da7e

Please sign in to comment.