aboutsummaryrefslogtreecommitdiff
path: root/mastodon
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-01-16 05:46:51 +0000
committerr <r@freesoftwareextremist.com>2021-01-16 05:46:51 +0000
commit384179e518c8d01a126e716a3f80a9543683e593 (patch)
tree4fbb655724d4852f900fc9555029b318f9340206 /mastodon
parentb35d62ecbb96b6d5f83b0453ca16e8dc45b39657 (diff)
downloadbloat-384179e518c8d01a126e716a3f80a9543683e593.tar.gz
bloat-384179e518c8d01a126e716a3f80a9543683e593.zip
Fix user info
Diffstat (limited to 'mastodon')
-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