Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Don't update follower count here

Cette révision appartient à :
kilo 2017-11-16 19:21:15 +01:00 révisé par GitHub
Parent 70899dc490
révision 5203b21733
Signature inconnue de Forgejo
ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 4 suppressions

Voir le fichier

@ -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)
}