From 5203b21733cb41c74aac61f13e3a9b35d5a5f56f Mon Sep 17 00:00:00 2001 From: kilo Date: Thu, 16 Nov 2017 19:21:15 +0100 Subject: [PATCH] Don't update follower count here --- templates/template.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/template.go b/templates/template.go index 77b9ec84..71ddc906 100644 --- a/templates/template.go +++ b/templates/template.go @@ -179,11 +179,8 @@ func userProfileBase(c *gin.Context, templateName string, userProfile *models.Us uploadedSize += torrent.Filesize } - if len(userProfile.Followers) == 0 { - userProfile.GetFollowers() - } variables.Set("UserProfile", userProfile) - variables.Set("NbTorrents", []int64{int64(nbTorrents),uploadedSize}) + variables.Set("NbTorrents", []int64{int64(nbTorrents), uploadedSize}) Render(c, path.Join(SiteDir, "user", templateName), variables) }