Fix attachment descriptions not being set correctly
This commit is contained in:
parent
17f15db32d
commit
955f9e5916
|
@ -154,7 +154,7 @@ class ComposeAttachmentsViewController: UITableViewController {
|
||||||
stepProgress()
|
stepProgress()
|
||||||
|
|
||||||
let formAttachment = FormAttachment(mimeType: mimeType, data: data, fileName: "file")
|
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
|
self.mastodonController.run(request) { (response) in
|
||||||
switch response {
|
switch response {
|
||||||
case let .failure(error):
|
case let .failure(error):
|
||||||
|
|
Loading…
Reference in New Issue