cmd/toot.go
changeset 220 08a2ee738117
parent 185 564d92b54b00
child 221 970c319e1f7c
equal deleted inserted replaced
219:c38de37df0da 220:08a2ee738117
   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 {