mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-25 13:21:28 +00:00
Fix for mastodon compatible. This is bare bones solution, I know
This commit is contained in:
parent
b4b3bfc063
commit
d139cb752c
|
@ -68,7 +68,11 @@ func (c *Client) GetAccount(ctx context.Context, id string) (*Account, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if len(rs) > 0 {
|
if len(rs) > 0 {
|
||||||
|
if account.Pleroma != nil {
|
||||||
account.Pleroma = &AccountPleroma{*rs[0], account.Pleroma.IsAdmin, account.Pleroma.IsModerator}
|
account.Pleroma = &AccountPleroma{*rs[0], account.Pleroma.IsAdmin, account.Pleroma.IsModerator}
|
||||||
|
} else {
|
||||||
|
account.Pleroma = &AccountPleroma{*rs[0], false, false}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &account, nil
|
return &account, nil
|
||||||
|
|
Loading…
Reference in a new issue