diff --git a/notification/twitter.go b/notification/twitter.go index 9dcf5db5..3256d2de 100644 --- a/notification/twitter.go +++ b/notification/twitter.go @@ -27,7 +27,10 @@ func NewTwitterProvider(consumerKey string, consumerSecret string, accessToken s AccessToken: accessToken, AccessTokenSecret: accessTokenSecret, } - twitterSrv, _ := twitter.NewWithHttpClient(credentials, proxy.ProxyHttpClient) + twitterSrv, err := twitter.NewWithHttpClient(credentials, proxy.ProxyHttpClient) + if err != nil { + return nil, err + } twitterSrv.AddReceivers(twitterId) diff --git a/web/src/ProviderEditPage.js b/web/src/ProviderEditPage.js index 7fb44002..0a9c6603 100644 --- a/web/src/ProviderEditPage.js +++ b/web/src/ProviderEditPage.js @@ -286,7 +286,7 @@ class ProviderEditPage extends React.Component { if (provider.type === "Viber") { text = i18next.t("provider:Domain"); tooltip = i18next.t("provider:Domain - Tooltip"); - } else { + } else if (provider.type === "Telegram" || provider.type === "DingTalk" || provider.type === "Pushover" || provider.type === "Pushbullet" || provider.type === "Slack" || provider.type === "Discord" || provider.type === "Line" || provider.type === "Matrix" || provider.type === "Rocket Chat") { text = i18next.t("provider:App Key"); tooltip = i18next.t("provider:App Key - Tooltip"); }