summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gtsmodel/account.go')
-rw-r--r--internal/gtsmodel/account.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/gtsmodel/account.go b/internal/gtsmodel/account.go
index 8b2de6b23..bd4fe1074 100644
--- a/internal/gtsmodel/account.go
+++ b/internal/gtsmodel/account.go
@@ -392,6 +392,12 @@ func (a *Account) IsSuspended() bool {
return !a.SuspendedAt.IsZero()
}
+// DeletedSelf returns true
+// if account deleted itself.
+func (a *Account) DeletedSelf() bool {
+ return a.SuspensionOrigin == a.ID
+}
+
// IsMoving returns true if
// account is Moving or has Moved.
func (a *Account) IsMoving() bool {