Fix attachment descriptions not being set correctly

This commit is contained in:
Shadowfacts 2020-03-17 21:03:29 -04:00
parent 17f15db32d
commit 955f9e5916
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class ComposeAttachmentsViewController: UITableViewController {
stepProgress()
let formAttachment = FormAttachment(mimeType: mimeType, data: data, fileName: "file")
let request = Client.upload(attachment: formAttachment, description: compAttachment.description)
let request = Client.upload(attachment: formAttachment, description: compAttachment.attachmentDescription)
self.mastodonController.run(request) { (response) in
switch response {
case let .failure(error):