mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
feat: fix notification provider frontend bug and twitter error (#2310)
This commit is contained in:
parent
e528e8883b
commit
ca6b27f922
@ -27,7 +27,10 @@ func NewTwitterProvider(consumerKey string, consumerSecret string, accessToken s
|
|||||||
AccessToken: accessToken,
|
AccessToken: accessToken,
|
||||||
AccessTokenSecret: accessTokenSecret,
|
AccessTokenSecret: accessTokenSecret,
|
||||||
}
|
}
|
||||||
twitterSrv, _ := twitter.NewWithHttpClient(credentials, proxy.ProxyHttpClient)
|
twitterSrv, err := twitter.NewWithHttpClient(credentials, proxy.ProxyHttpClient)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
twitterSrv.AddReceivers(twitterId)
|
twitterSrv.AddReceivers(twitterId)
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ class ProviderEditPage extends React.Component {
|
|||||||
if (provider.type === "Viber") {
|
if (provider.type === "Viber") {
|
||||||
text = i18next.t("provider:Domain");
|
text = i18next.t("provider:Domain");
|
||||||
tooltip = i18next.t("provider:Domain - Tooltip");
|
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");
|
text = i18next.t("provider:App Key");
|
||||||
tooltip = i18next.t("provider:App Key - Tooltip");
|
tooltip = i18next.t("provider:App Key - Tooltip");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user