diff options
author | r <r@freesoftwareextremist.com> | 2021-01-16 05:46:51 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2021-01-16 05:46:51 +0000 |
commit | 384179e518c8d01a126e716a3f80a9543683e593 (patch) | |
tree | 4fbb655724d4852f900fc9555029b318f9340206 /mastodon | |
parent | b35d62ecbb96b6d5f83b0453ca16e8dc45b39657 (diff) | |
download | bloat-384179e518c8d01a126e716a3f80a9543683e593.tar.gz bloat-384179e518c8d01a126e716a3f80a9543683e593.zip |
Fix user info
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/accounts.go | 2 |
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 |