equal
deleted
inserted
replaced
20 } |
20 } |
21 return accountList, nil |
21 return accountList, nil |
22 } |
22 } |
23 |
23 |
24 // PinAccount adds the account to the endorsement list |
24 // PinAccount adds the account to the endorsement list |
25 func (mc *Client) PinAccount(accountID int64) (*Relationship, error) { |
25 func (mc *Client) PinAccount(accountID ActivityID) (*Relationship, error) { |
26 rel, err := mc.updateRelationship("pin", accountID, nil) |
26 rel, err := mc.updateRelationship("pin", accountID, nil) |
27 if err != nil { |
27 if err != nil { |
28 return nil, err |
28 return nil, err |
29 } |
29 } |
30 if rel == nil { |
30 if rel == nil { |
32 } |
32 } |
33 return rel, nil |
33 return rel, nil |
34 } |
34 } |
35 |
35 |
36 // UnpinAccount removes the account from the endorsement list |
36 // UnpinAccount removes the account from the endorsement list |
37 func (mc *Client) UnpinAccount(accountID int64) (*Relationship, error) { |
37 func (mc *Client) UnpinAccount(accountID ActivityID) (*Relationship, error) { |
38 rel, err := mc.updateRelationship("unpin", accountID, nil) |
38 rel, err := mc.updateRelationship("unpin", accountID, nil) |
39 if err != nil { |
39 if err != nil { |
40 return nil, err |
40 return nil, err |
41 } |
41 } |
42 if rel == nil { |
42 if rel == nil { |