diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-17 17:58:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 17:58:31 +0800 |
commit | 95d3266bee797cbeb7228d361fe32531737906d2 (patch) | |
tree | 68d90e7ef3e890c1ac311cf79f08cbe12a0dafca /models/statistic.go | |
parent | adda27668b9764f97822e56e0591a6eb22165a83 (diff) | |
download | gitea-95d3266bee797cbeb7228d361fe32531737906d2.tar.gz gitea-95d3266bee797cbeb7228d361fe32531737906d2.zip |
Move user follow and openid into models/user/ (#17613)
* Move UserRedirect into models/user/
* Fix lint & test
* Fix lint
* Fix lint
* remove nolint comment
* Fix lint
* Move user follow and openid into models/user
* Ignore the lint
* Ignore the lint
* Fix test
* ignore stutters lint on UserOpenID
Diffstat (limited to 'models/statistic.go')
-rw-r--r-- | models/statistic.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/statistic.go b/models/statistic.go index fab35e62dc..1849497cd9 100644 --- a/models/statistic.go +++ b/models/statistic.go @@ -7,6 +7,7 @@ package models import ( "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/login" + user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/models/webhook" "code.gitea.io/gitea/modules/setting" ) @@ -92,7 +93,7 @@ func GetStatistic() (stats Statistic) { stats.Counter.Comment, _ = e.Count(new(Comment)) stats.Counter.Oauth = 0 - stats.Counter.Follow, _ = e.Count(new(Follow)) + stats.Counter.Follow, _ = e.Count(new(user_model.Follow)) stats.Counter.Mirror, _ = e.Count(new(Mirror)) stats.Counter.Release, _ = e.Count(new(Release)) stats.Counter.LoginSource = login.CountSources() |