summaryrefslogtreecommitdiffstats
path: root/models/statistic.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/statistic.go')
-rw-r--r--models/statistic.go3
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()