From e164527d4c88507eb72a67bb9e9c3d3ca9f6deeb Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 11 Sep 2018 13:45:48 -0400 Subject: [PATCH] Fix upload media --- Pachyderm/Client.swift | 2 +- Tusker.xcodeproj/project.pbxproj | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Pachyderm/Client.swift b/Pachyderm/Client.swift index ce461504..48c2e28d 100644 --- a/Pachyderm/Client.swift +++ b/Pachyderm/Client.swift @@ -322,7 +322,7 @@ public class Client { "spoiler_text" => spoilerText, "visibility" => visiblity?.rawValue, "language" => language - ] + "media" => media?.map { $0.id })) + ] + "media_ids" => media?.map { $0.id })) run(request, completion: completion) } diff --git a/Tusker.xcodeproj/project.pbxproj b/Tusker.xcodeproj/project.pbxproj index 75553265..c351415b 100644 --- a/Tusker.xcodeproj/project.pbxproj +++ b/Tusker.xcodeproj/project.pbxproj @@ -258,7 +258,6 @@ D6D4DDEB212518A200E1C4BB /* TuskerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TuskerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; D6D4DDEF212518A200E1C4BB /* TuskerUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TuskerUITests.swift; sourceTree = ""; }; D6D4DDF1212518A200E1C4BB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - D6F953E6212519A400CF0F2B /* MastodonKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MastodonKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; D6F953EB212519E700CF0F2B /* TimelineTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimelineTableViewController.swift; sourceTree = ""; }; D6F953ED21251A0700CF0F2B /* Timeline.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Timeline.storyboard; sourceTree = ""; }; D6F953EF21251A2900CF0F2B /* MastodonController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MastodonController.swift; sourceTree = ""; }; @@ -580,7 +579,6 @@ isa = PBXGroup; children = ( D6BED16E212663DA00F02DA0 /* SwiftSoup.framework */, - D6F953E6212519A400CF0F2B /* MastodonKit.framework */, D61099AC2144B0CC00432DC2 /* Pachyderm */, D61099B92144B0CC00432DC2 /* PachydermTests */, D6D4DDCE212518A000E1C4BB /* Tusker */,