aboutsummaryrefslogtreecommitdiff
path: root/mastodon/accounts.go
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon/accounts.go')
-rw-r--r--mastodon/accounts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/accounts.go b/mastodon/accounts.go
index c5eb227..694e672 100644
--- a/mastodon/accounts.go
+++ b/mastodon/accounts.go
@@ -60,7 +60,7 @@ func (c *Client) GetAccount(ctx context.Context, id string) (*Account, error) {
if err != nil {
return nil, err
}
- if account.Pleroma == nil {
+ if account.Pleroma == nil || len(account.Pleroma.Relationship.ID) < 1 {
rs, err := c.GetAccountRelationships(ctx, []string{id})
if err != nil {
return nil, err