diff --git a/src/wp-to-twitter.php b/src/wp-to-twitter.php index c081c9d..eae5b34 100644 --- a/src/wp-to-twitter.php +++ b/src/wp-to-twitter.php @@ -504,7 +504,7 @@ function wpt_post_submit_handler( $connection, $response, $id, $auth, $twit ) { if ( ! $has_status_id && $status_id ) { update_post_meta( $id, '_wpt_status_id', $status_id ); } - wpt_set_log( 'wpt_status_message', $id, $notice . ' ' . __( 'Status sent successfully.', 'wp-to-twitter' ) ); + wpt_set_log( 'wpt_status_message', $id, $notice ); } } diff --git a/src/wpt-post-to-mastodon.php b/src/wpt-post-to-mastodon.php index 6be623a..b4d6914 100644 --- a/src/wpt-post-to-mastodon.php +++ b/src/wpt-post-to-mastodon.php @@ -127,7 +127,7 @@ function wpt_send_post_to_mastodon( $connection, $auth, $id, $status ) { $success = true; $http_code = 200; $status_id = $return['id']; - $notice .= __( 'Successful status update sent to Mastodon.', 'wp-to-twitter' ); + $notice .= __( 'Sent to Mastodon.', 'wp-to-twitter' ); } else { $http_code = 401; $notice .= __( 'Mastodon status update failed.', 'wp-to-twitter' ); diff --git a/src/wpt-post-to-twitter.php b/src/wpt-post-to-twitter.php index 67d8bb7..bd2077d 100644 --- a/src/wpt-post-to-twitter.php +++ b/src/wpt-post-to-twitter.php @@ -114,6 +114,7 @@ function wpt_send_post_to_twitter( $connection, $auth, $id, $status ) { 'rate-24' => $headers['x-app-limit-24hour-limit'], 'rate-24-reset' => $headers['x-app-limit-24hour-reset'], ); + $notice = __( 'Sent to X.com', 'wp-to-twitter' ); update_option( 'wpt_app_limit', $rate_limit ); } catch ( RequestException $e ) { // Get Guzzle exception response.