Fix user info
authorr <r@freesoftwareextremist.com>
Sat, 16 Jan 2021 05:46:51 +0000 (05:46 +0000)
committerr <r@freesoftwareextremist.com>
Sat, 16 Jan 2021 05:46:51 +0000 (05:46 +0000)
mastodon/accounts.go

index c5eb227335cca84828ab635e34abf7bdba184edd..694e672f506069d088284d1cb696fde001711776 100644 (file)
@@ -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