Improved API privacy

This commit is contained in:
2019-09-07 20:09:55 +09:00
parent 4e6aa5eef6
commit cc1c394002
6 changed files with 25 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
// Force interface implementations
var (
_ Identifiable = (*PushSubscriptions)(nil)
_ api.Editable = (*PushSubscriptions)(nil)
_ api.Filter = (*PushSubscriptions)(nil)
)
@ -91,6 +92,10 @@ func (list *PushSubscriptions) Filter() {
item.P256DH = ""
item.Auth = ""
item.Endpoint = ""
item.Platform = ""
item.UserAgent = ""
item.Screen.Width = 0
item.Screen.Height = 0
}
}