Skip to content

Commit

Permalink
fix: remove post link from main post
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Jan 10, 2025
1 parent b6819db commit b9d24e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/admin/services/class-rop-facebook-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,8 @@ private function try_post( $new_post, $page_id, $token, $post_id, $posting_type
if ( isset( $new_post['share_link_text'] ) ) {
$share_link_text = $new_post['share_link_text'];
unset( $new_post['share_link_text'] );
// Remove the link from the main post when it's shared in the comment.
unset( $new_post['link'] );
}

if ( $this->get_api() && empty( $installed_with_app ) ) {
Expand Down

0 comments on commit b9d24e7

Please sign in to comment.