Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Comment the reset on breach

Manav Rathi04840d4ec78d
diff --git a/server/pkg/controller/file.go b/server/pkg/controller/file.go
index 08e0b09f42..290ca21402 100644
--- a/server/pkg/controller/file.go
+++ b/server/pkg/controller/file.go
@@ -336,7 +336,7 @@ func (c *FileController) addOutstandingURLs(userID int64, n int) bool {
ok := total <= 250
if !ok {
go c.DiscordController.NotifyPotentialAbuse(fmt.Sprintf("Too many outstanding upload URLs for user %d", userID))
- total = 0
+ total = 0 // so that stranded counts don't lock the user out
}
c.outstandingURLs[userID] = total
return ok