Changeset 711552
- Timestamp:
- 05/11/2013 11:56:32 PM (13 years ago)
- Location:
- buddypress-xml-rpc-receiver/trunk
- Files:
-
- 2 edited
-
bp-xmlrpc.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php
r711378 r711552 734 734 735 735 if(@$data['requests']) { 736 bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->friends->id, 'friendship_request' ); 736 737 $friends = BP_Core_User::get_users( 'active', @$data['max']?$data['max']:0, 1, 0, bp_get_friendship_requests($bp->loggedin_user->id) ); 737 738 } 738 else 739 else { 740 // delete this type of notification 741 bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->friends->id, 'friendship_accepted' ); 742 739 743 $friends = BP_Core_User::get_users( 'active', @$data['max']?$data['max']:0, 1, $bp->loggedin_user->id); 740 744 } 741 745 742 746 if ( $friends ) { … … 863 867 864 868 $max = @$data['max']?(int)$data['max']:0; 869 870 // remove this type of notification 871 if(@$data['user']) { 872 bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->groups->id, 'membership_request_accepted' ); 873 bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->groups->id, 'member_promoted_to_mod' ); 874 bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->groups->id, 'member_promoted_to_admin' ); 875 } 876 else { 877 bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->groups->id, 'membership_request_rejected' ); 878 } 865 879 866 880 if ( $groups = groups_get_groups( -
buddypress-xml-rpc-receiver/trunk/readme.txt
r711381 r711552 129 129 = How do I use this plugin to redirect users? = 130 130 131 Direct them to the follo ing url:131 Direct them to the following url: 132 132 133 133 http://www.yoursite.com/index.php?bp_xmlrpc=true&bp_xmlrpc_redirect=<redirect> … … 153 153 == Changelog == 154 154 155 = 0.5.8 = 156 157 - minor notification fix 158 155 159 = 0.5.7 = 156 160
Note: See TracChangeset
for help on using the changeset viewer.