mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-12 12:08:36 -07:00
Remove user snatches (should be handled by backend)
This commit is contained in:
@@ -171,14 +171,6 @@ func handleEvent(c Conn, ann *models.Announce) (snatched bool, err error) {
|
||||
}
|
||||
ann.Torrent.Snatches++
|
||||
}
|
||||
|
||||
if snatched && ann.Config.PrivateEnabled {
|
||||
err = c.IncrementUserSnatches(ann.User.Passkey)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
ann.User.Snatches++
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user