]> git.mxchange.org Git - friendica-addons.git/commitdiff
Twitter: Offer the disconnect button when the account data is invalid
authorMichael <heluecht@pirati.ca>
Mon, 5 Oct 2020 06:47:35 +0000 (06:47 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 5 Oct 2020 06:47:35 +0000 (06:47 +0000)
twitter/twitter.php

index 375e264cd4cb3c4e7159271088c532a4a596cb6c..6f3978f25134bed40ce4f6a77535670c46cc487e 100644 (file)
@@ -348,7 +348,8 @@ function twitter_settings(App $a, &$s)
                                } else {
                                        $s .= '<div id="twitter-info" >
                                        <p>Invalid Twitter info</p>
-                               </div>';
+                                       <button type="submit" name="twitter-disconnect" value="1">' . DI::l10n()->t('Disconnect') . '</button>
+                                       </div>';
                                        Logger::info('Invalid twitter info (verify credentials).', ['auth' => TwitterOAuth::class]);
                                }
                                $s .= '<div class="clear"></div>';