diff options
Diffstat (limited to 'internal/gtsmodel')
| -rw-r--r-- | internal/gtsmodel/account.go | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/internal/gtsmodel/account.go b/internal/gtsmodel/account.go index fb6c54bec..f5b487cc8 100644 --- a/internal/gtsmodel/account.go +++ b/internal/gtsmodel/account.go @@ -96,6 +96,12 @@ func (a *Account) IsRemote() bool {  	return !a.IsLocal()  } +// IsNew returns whether an account is "new" in the sense +// that it has not been previously stored in the database. +func (a *Account) IsNew() bool { +	return a.CreatedAt.IsZero() +} +  // IsInstance returns whether account is an instance internal actor account.  func (a *Account) IsInstance() bool {  	if a.IsLocal() { | 
