Remove text from my Facebook posts

Remove Jetpack’s publicize description with this code. Add this code to your theme’s functions.php

// Remove description of posts on social share
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'publicize' ) ) {
    function tsj_publicize_hashtags() {
        $post = get_post();
        if ( ! empty( $post ) ) {
                $custom_message = get_the_permalink(); 
                update_post_meta( $post->ID, '_wpas_mess', $custom_message );
        }
    }
    /* Save that message */
    function tsj_cust_pub_message_save() {
    add_action( 'save_post', 'tsj_publicize_hashtags', 21 );
    }
    add_action( 'publish_post', 'tsj_cust_pub_message_save' );
}

Respond me if code works.