mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-13 08:19:20 +02: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
|
||||
}
|
||||
if len(rs) > 0 {
|
||||
account.Pleroma = &AccountPleroma{*rs[0], account.Pleroma.IsAdmin, account.Pleroma.IsModerator}
|
||||
if account.Pleroma != nil {
|
||||
account.Pleroma = &AccountPleroma{*rs[0], account.Pleroma.IsAdmin, account.Pleroma.IsModerator}
|
||||
} else {
|
||||
account.Pleroma = &AccountPleroma{*rs[0], false, false}
|
||||
}
|
||||
}
|
||||
}
|
||||
return &account, nil
|
||||
|
|
Loading…
Reference in New Issue