# HG changeset patch # User Mikael Berthe # Date 1521588430 -3600 # Node ID 22ed9de1c5fe3ab4ab4d051b833dc7ad1b40d56e # Parent cc086e49cd0c866f1fba0e1e9860c5cec3e9f9e0 FollowAccount: Add 'reblogs' parameter diff -r cc086e49cd0c -r 22ed9de1c5fe account.go --- a/account.go Tue Mar 20 22:38:33 2018 +0100 +++ b/account.go Wed Mar 21 00:27:10 2018 +0100 @@ -199,8 +199,18 @@ } // FollowAccount follows an account -func (mc *Client) FollowAccount(accountID int64) (*Relationship, error) { - rel, err := mc.updateRelationship("follow", accountID, nil) +// 'reblogs' can be used to specify if boots should be displayed or hidden. +func (mc *Client) FollowAccount(accountID int64, reblogs *bool) (*Relationship, error) { + var params apiCallParams + if reblogs != nil { + params = make(apiCallParams) + if *reblogs { + params["reblogs"] = "true" + } else { + params["reblogs"] = "false" + } + } + rel, err := mc.updateRelationship("follow", accountID, params) if err != nil { return nil, err }