1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-31 02:29:18 +02:00

Deleting account deletes subscription

This commit is contained in:
binwiederhier 2023-01-19 14:03:39 -05:00
parent 4e51a715c1
commit 45b97c7054
5 changed files with 67 additions and 1 deletions

View file

@ -213,6 +213,8 @@ func (v *visitor) ResetStats() {
}
func (v *visitor) Limits() *visitorLimits {
v.mu.Lock()
defer v.mu.Unlock()
limits := defaultVisitorLimits(v.config)
if v.user != nil && v.user.Tier != nil {
limits.Basis = visitorLimitBasisTier