Skip to content

Commit cc434ab

Browse files
authored
Merge pull request #263 from KC-2001MS/fix/mute-thread-method
Corrections to the `contentTypeValue` and `andMethod` arguments in the `muteThread` and `unmuteThread` functions
2 parents 8fa0806 + a210c2d commit cc434ab

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteThreadMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ extension ATProtoKit {
4747
do {
4848
let request = apiClientService.createRequest(
4949
forRequest: requestURL,
50-
andMethod: .get,
50+
andMethod: .post,
5151
acceptValue: "application/json",
52-
contentTypeValue: nil,
52+
contentTypeValue: "application/json",
5353
authorizationValue: "Bearer \(accessToken)"
5454
)
5555

Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ extension ATProtoKit {
4646
do {
4747
let request = apiClientService.createRequest(
4848
forRequest: requestURL,
49-
andMethod: .get,
49+
andMethod: .post,
5050
acceptValue: "application/json",
51-
contentTypeValue: nil,
51+
contentTypeValue: "application/json",
5252
authorizationValue: "Bearer \(accessToken)"
5353
)
5454

0 commit comments

Comments
 (0)