Support » Plugin: BuddyPress Group Email Subscription » [Plugin: BuddyPress Group Email Subscription]Follow/Mute button says Error

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter heddle

    (@heddle)

    I think I fixed it. In the bp-activity-subscription-js.js file, around line 23, I changed the code to look like this.

    j.post( ajaxurl, data, function( response ) {
    
    			if (stheid[0] == 'follow' ) {
    
    				var m = bp_ass.mute;
    				theid = theid.replace( 'follow', 'mute' );
    			} else if ( stheid[0] == 'mute' ) {
    				var m = bp_ass.follow;
    				theid = theid.replace( 'mute', 'follow' );
    			} else {
    				var m = bp_ass.error;
    
    			}

    When I debugged, response was returning the word mute or follow, but it had at least one line break before it instead of just returning ‘follow’ or ‘mute’ which is why it was defaulting the the else statement labeling it ‘Error’.

    Thread Starter heddle

    (@heddle)

    Seems to work

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: BuddyPress Group Email Subscription]Follow/Mute button says Error’ is closed to new replies.