feat: fix notification provider frontend bug and twitter error (#2310)

This commit is contained in:
UsherFall 2023-09-06 23:41:34 +08:00 committed by GitHub
parent e528e8883b
commit ca6b27f922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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");
}