equal
deleted
inserted
replaced
145 if fileMediaID > 0 { |
145 if fileMediaID > 0 { |
146 ids = append(ids, fileMediaID) |
146 ids = append(ids, fileMediaID) |
147 } |
147 } |
148 } |
148 } |
149 |
149 |
150 return gClient.PostStatus(tootText, opt.inReplyToID, ids, opt.sensitive, opt.spoiler, opt.visibility) |
150 postParam := madon.PostStatusParams{ |
|
151 Text: tootText, |
|
152 InReplyTo: opt.inReplyToID, |
|
153 MediaIDs: ids, |
|
154 Sensitive: opt.sensitive, |
|
155 SpoilerText: opt.spoiler, |
|
156 Visibility: opt.visibility, |
|
157 } |
|
158 return gClient.PostStatus(postParam) |
151 } |
159 } |
152 |
160 |
153 func mentionsList(s *madon.Status) (string, error) { |
161 func mentionsList(s *madon.Status) (string, error) { |
154 a, err := gClient.GetCurrentAccount() |
162 a, err := gClient.GetCurrentAccount() |
155 if err != nil { |
163 if err != nil { |