feat: change email, export my data, delete account (with data anonymization)
This commit is contained in:
1 parent
bb191c389a
commit
10a66cd979
123 files changed
+10789
-76
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package audit
|
||||
|
||||
import "strconv"
|
||||
|
||||
func (e Event) ConcernsOtherPerson(userID uint32, ownAuthorID *uint32) bool {
|
||||
switch e.Target.Type {
|
||||
case TargetUser:
|
||||
return e.Target.ID != formatID(userID)
|
||||
case TargetInvite:
|
||||
return true
|
||||
case TargetAuthor:
|
||||
return ownAuthorID == nil || e.Target.ID != formatID(*ownAuthorID)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func formatID(id uint32) string {
|
||||
return strconv.FormatUint(uint64(id), 10)
|
||||
}
|
||||
Reference in new issue
Block a user