diff --git a/includes/admin/services/class-rop-mastodon-service.php b/includes/admin/services/class-rop-mastodon-service.php index cb5c7e43..302c5947 100644 --- a/includes/admin/services/class-rop-mastodon-service.php +++ b/includes/admin/services/class-rop-mastodon-service.php @@ -799,6 +799,15 @@ public function share( $post_details, $args = array() ) { $response = $this->request_new_post( $new_post ); if ( isset( $response->id ) ) { + // Save log. + $this->save_logs_on_rop( + array( + 'network' => $post_details['service'], + 'handle' => $args['user'], + 'content' => $post_details['content'], + 'link' => $post_details['post_url'], + ) + ); $this->logger->alert_success( sprintf( 'Successfully shared %s to %s on %s ', diff --git a/includes/admin/services/class-rop-telegram-service.php b/includes/admin/services/class-rop-telegram-service.php index 5d528ff8..b54623d6 100644 --- a/includes/admin/services/class-rop-telegram-service.php +++ b/includes/admin/services/class-rop-telegram-service.php @@ -423,6 +423,15 @@ public function share( $post_details, $args = array() ) { } if ( $response && $response->getMessageId() ) { + // Save log. + $this->save_logs_on_rop( + array( + 'network' => $post_details['service'], + 'handle' => $args['user'], + 'content' => $post_details['content'], + 'link' => $post_details['post_url'], + ) + ); $this->logger->alert_success( sprintf( 'Successfully shared %s to %s on Telegram ',