diff --git a/src/css/styles.css b/src/css/styles.css
index 09e6477..a49a5ec 100644
--- a/src/css/styles.css
+++ b/src/css/styles.css
@@ -178,6 +178,12 @@ label[for="wpt_license_key"] {
font-size: 1.1em;
}
+#wpt_settings_page .wpt-has-link {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+
#wpt_settings_page .tabs li {
display: inline;
margin: 0 auto;
diff --git a/src/wp-to-twitter-mastodon.php b/src/wp-to-twitter-mastodon.php
index 8e14088..833780b 100644
--- a/src/wp-to-twitter-mastodon.php
+++ b/src/wp-to-twitter-mastodon.php
@@ -129,16 +129,18 @@ function wtt_connect_mastodon( $auth = false ) {
$submit = ( ! $auth ) ? '
' : '';
print( '
- ' . __( 'Connect to Mastodon', 'wp-to-twitter' ) . '
+
- ' . __( 'Navigate to Preferences > Settings > Development in your Mastodon account.', 'wp-to-twitter' ) . '
- ' . __( 'Click on "New application".', 'wp-to-twitter' ) . '
- ' . __( 'Name your application.', 'wp-to-twitter' ) . '
- ' . __( 'Add your website URL', 'wp-to-twitter' ) . '
- - ' . __( 'Add the API Scopes for your application. Minimum required permissions are "write:statuses" and "write:media".', 'wp-to-twitter' ) . '
+ - ' . __( 'Add the API Scopes for your application. Required permissions are
read
, write:statuses
and write:media
.', 'wp-to-twitter' ) . '
- ' . __( 'Submit your application.', 'wp-to-twitter' ) . '
- - ' . __( 'Select your application from the list.', 'wp-to-twitter' ) . '
+ - ' . __( 'Select your application from the list of Your Applications.', 'wp-to-twitter' ) . '
+ - ' . __( 'Copy your Access Token', 'wp-to-twitter' ) . '
+ - ' . __( 'Add your Mastodon server URL', 'wp-to-twitter' ) . '
' . $form . '
diff --git a/src/wp-to-twitter-oauth.php b/src/wp-to-twitter-oauth.php
index b5b1f8b..b4e2f44 100644
--- a/src/wp-to-twitter-oauth.php
+++ b/src/wp-to-twitter-oauth.php
@@ -324,7 +324,7 @@ function wtt_connect_oauth( $auth = false ) {
$submit = ( ! $auth ) ? '
' : '';
print( '
-
' . __( 'Connect to X.com', 'wp-to-twitter' ) . '
+
- ' . __( 'Apply for a Developer Account with X.com', 'wp-to-twitter' ) . '
@@ -333,7 +333,7 @@ function wtt_connect_oauth( $auth = false ) {
- ' . __( 'Add a new application in X.com\'s project and app portal', 'wp-to-twitter' ) . '
- - ' . __( 'Name your application.', 'wp-to-twitter' ) . '(' . __( 'Your app name cannot include the word "Twitter."', 'wp-to-twitter' ) . ')
+ - ' . __( 'Name your application.', 'wp-to-twitter' ) . ' (' . __( 'Your app name cannot include the word "Twitter."', 'wp-to-twitter' ) . ')
- ' . __( 'Click "Next" to move to the Keys & Tokens step.', 'wp-to-twitter' ) . '
diff --git a/src/wpt-post-to-mastodon.php b/src/wpt-post-to-mastodon.php
index 624e1de..6be623a 100644
--- a/src/wpt-post-to-mastodon.php
+++ b/src/wpt-post-to-mastodon.php
@@ -168,7 +168,7 @@ function wpt_mastodon_connection( $auth = false, $verify = false ) {
}
}
$mastodon = false;
- if ( '' !== $token && '' !== $instance ) {
+ if ( $token && $instance ) {
$mastodon = new Wpt_Mastodon_Api( $token, $instance );
if ( $verify ) {
$verify = $mastodon->verify();