mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 13:58:46 +00:00
fix merge conflicts
This commit is contained in:
parent
4379eab5bf
commit
96a0d7cf05
3 changed files with 2 additions and 54 deletions
|
@ -185,8 +185,8 @@ type Profile struct {
|
|||
Source *AccountSource
|
||||
|
||||
// Set the base64 encoded character string of the image.
|
||||
Avatar string
|
||||
Header string
|
||||
Avatar *multipart.FileHeader
|
||||
Header *multipart.FileHeader
|
||||
|
||||
//Other settings
|
||||
Bot *bool
|
||||
|
@ -275,14 +275,6 @@ func (c *Client) AccountUpdate(ctx context.Context, profile *Profile) (*Account,
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if profile.Bot != nil {
|
||||
params.Set("bot", strconv.FormatBool(*profile.Bot))
|
||||
}
|
||||
if profile.Pleroma != nil {
|
||||
if profile.Pleroma.AcceptsChatMessages != nil {
|
||||
params.Set("accepts_chat_messages", strconv.FormatBool(*profile.Pleroma.AcceptsChatMessages))
|
||||
}
|
||||
}
|
||||
|
||||
params := &multipartRequest{Data: &buf, ContentType: mw.FormDataContentType()}
|
||||
var account Account
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue