aboutsummaryrefslogtreecommitdiffstats
path: root/modules/social
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-21 00:51:41 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-21 00:51:41 -0400
commitad5ec45dd63aa2563d113e6a9ce31180246aa5f2 (patch)
treeb49f76a29faeec1bdf734375f91e5291acf09e53 /modules/social
parent8bfa7ae7453e56191aa6f7de8067d5b6bb5a4a8b (diff)
downloadgitea-ad5ec45dd63aa2563d113e6a9ce31180246aa5f2.tar.gz
gitea-ad5ec45dd63aa2563d113e6a9ce31180246aa5f2.zip
Fix #165
Diffstat (limited to 'modules/social')
-rw-r--r--modules/social/social.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/social/social.go b/modules/social/social.go
index 62f4d51835..326a463fac 100644
--- a/modules/social/social.go
+++ b/modules/social/social.go
@@ -120,7 +120,7 @@ type SocialGithub struct {
}
func (s *SocialGithub) Type() int {
- return models.OT_GITHUB
+ return int(models.GITHUB)
}
func newGitHubOauth(config *oauth.Config) {
@@ -174,7 +174,7 @@ type SocialGoogle struct {
}
func (s *SocialGoogle) Type() int {
- return models.OT_GOOGLE
+ return int(models.GOOGLE)
}
func newGoogleOauth(config *oauth.Config) {
@@ -229,7 +229,7 @@ type SocialTencent struct {
}
func (s *SocialTencent) Type() int {
- return models.OT_QQ
+ return int(models.QQ)
}
func newTencentOauth(config *oauth.Config) {
@@ -295,7 +295,7 @@ type SocialTwitter struct {
}
func (s *SocialTwitter) Type() int {
- return models.OT_TWITTER
+ return int(models.TWITTER)
}
func newTwitterOauth(config *oauth.Config) {
@@ -351,7 +351,7 @@ type SocialWeibo struct {
}
func (s *SocialWeibo) Type() int {
- return models.OT_WEIBO
+ return int(models.WEIBO)
}
func newWeiboOauth(config *oauth.Config) {