Don't update follower count here
Cette révision appartient à :
Parent
70899dc490
révision
5203b21733
|
@ -179,11 +179,8 @@ func userProfileBase(c *gin.Context, templateName string, userProfile *models.Us
|
||||||
uploadedSize += torrent.Filesize
|
uploadedSize += torrent.Filesize
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(userProfile.Followers) == 0 {
|
|
||||||
userProfile.GetFollowers()
|
|
||||||
}
|
|
||||||
variables.Set("UserProfile", userProfile)
|
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)
|
Render(c, path.Join(SiteDir, "user", templateName), variables)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Référencer dans un nouveau ticket