diff --git a/includes/post-types/bots.php b/includes/post-types/bots.php index 3cd4e43..fc0f6d1 100644 --- a/includes/post-types/bots.php +++ b/includes/post-types/bots.php @@ -704,6 +704,23 @@ function save_meta( $post_id ) { else { global $helpers; if ( $helpers->is_mastodon_instance($tweet_url) ){ + + // $domain = $helpers->get_domain_from_url( $tweet_url ); + // $bot_post_id = end(explode('/', $tweet_url)); + + // $request_url = "https://$domain/api/v1/statuses/$bot_post_id"; + + // $response = wp_remote_get( $request_url ); + // $body = wp_remote_retrieve_body( $response ); + // $data = json_decode( $body ); + + // if( !is_wp_error( $response ) ) { + // log_this(array( + // '$tweet_url' => $tweet_url, + // '$domain' => $data, + // )); + // } + $bot_tweets_html .= '
'; } }