• Comments and posts are treated equally which means that if you have the string “X liked your comment” then it will be the same on the notification for likes of a post.

    In order to fix this issue you need to change the following function in the file \public\class-notifications-on-post-like-for-buddyboss-public.php at line 284:

    function types( $current_type ) {
        return in_array( $current_type, array( 'activity_comment', 'activity_update' ) );
    }

    to this:

    function types( $current_type ) {
    //CORE CHANGE: 'activity_update' removed in order for post to not be treated as a comment
    return in_array( $current_type, array( 'activity_comment' ) );
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Post and comment is treated the same’ is closed to new replies.