diff options
Diffstat (limited to 'internal/gtsmodel/account.go')
-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 bae50a749..7956157ff 100644 --- a/internal/gtsmodel/account.go +++ b/internal/gtsmodel/account.go @@ -95,6 +95,12 @@ func (a *Account) IsRemote() bool { // IsInstance returns whether account is an instance internal actor account. func (a *Account) IsInstance() bool { + if a.IsLocal() { + // Check if our instance account. + return a.Username == config.GetHost() + } + + // Check if remote instance account. return a.Username == a.Domain || a.FollowersURI == "" || a.FollowingURI == "" || |