Skip to content

Commit 02bd74d

Browse files
committed
Update .org API to use media_type instead of mime_type
Issue originally identified in Android wordpress-mobile/WordPress-FluxC-Android#3109 (comment)
1 parent ec31e45 commit 02bd74d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Networking/Networking/Remote/MediaRemote.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public class MediaRemote: Remote, MediaRemoteProtocol {
126126
ParameterKey.dotOrgPageSize: pageSize,
127127
ParameterKey.pageNumber: pageNumber,
128128
ParameterKey.fieldsWordPressSite: ParameterValue.wordPressMediaFields,
129-
ParameterKey.mimeType: imagesOnly ? "image" : nil,
129+
ParameterKey.mediaType: imagesOnly ? "image" : nil,
130130
ParameterKey.wordPressMediaParent: productID
131131
].compactMapValues { $0 }
132132

@@ -302,6 +302,7 @@ public extension MediaRemote {
302302
static let fields: String = "fields"
303303
static let fieldsWordPressSite: String = "_fields"
304304
static let mimeType: String = "mime_type"
305+
static let mediaType: String = "media_type"
305306
static let postID: String = "post_ID"
306307
static let contextKey: String = "context"
307308
static let wordPressMediaParentID = "parent_id"

0 commit comments

Comments
 (0)