r-a-y / buddypress-followers

Follow users on your BuddyPress site. Similar to Twitter!
http://wordpress.org/plugins/buddypress-followers/
74 stars 39 forks source link

Follow Activity module #67

Open r-a-y opened 8 years ago

r-a-y commented 8 years ago

Add an API to follow activity.

Plugins could take advantage of this functionality to modify the API to follow and segregate specific activity types from the activity stream for their own use.

For a more general use case of following activity items, there will be some overlap with the current BP activity favorites system and what is planned for the future: https://buddypress.trac.wordpress.org/ticket/5644


In commit dd688d0, I've added a first pass at this.

It's not really ready for public consumption, but if anyone is reading this issue and wants to test, pull the latest commits and add the following in wp-content/plugins/bp-custom.php:

   add_filter( 'bp_follow_enable_activity', '__return_true' );

Has some functionality for plugins to hook into. See the inline doc in bp_follow_activity_can_follow() for more info.