Changes between Initial Version and Version 1 of Ticket #5665, comment 4
- Timestamp:
- 06/05/2014 05:42:35 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5665, comment 4
initial v1 9 9 10 10 re #2 Activity - I just use the 'bp_activity_get_where_conditions' filter and add a couple NOT IN $blocked_ids to the $where_conditions array 11 12 {{{ 13 function _activity_where_query( $where_conditions, $r, $select_sql, $from_sql, $join_sq) { 14 15 if( !empty( $this->their_blocked_ids ) ) { 16 17 $blocked_ids = implode(",", $this->their_blocked_ids); 18 19 $where_conditions["blocked_sql"] = "a.user_id NOT IN ({$blocked_ids}) AND a.secondary_item_id NOT IN ({$blocked_ids}) "; 20 21 } 22 23 return $where_conditions; 24 25 } 26 }}} 27 28 29 11 30 12 31 >Activity at-mention filtering is tricky. … … 30 49 To see my plugin roster, visit http://www.philopress.com/. 31 50 I just released a couple of Group plugins. 32