Skip to content

Commit 6b78eaa

Browse files
authored
Merge pull request #228 from KernelFox0/main
Fix queryLabels and getLabelerServices functions
2 parents a8bda31 + 7a6ae3e commit 6b78eaa

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyLabelerGetServicesMethod.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ extension ATProtoKit {
3838

3939
var queryItems = [(String, String)]()
4040

41+
if let isDetailed {
42+
queryItems += [("detailed", "\(isDetailed)")]
43+
}
4144
queryItems += labelerDIDs.map { ("dids", $0) }
4245

4346
let queryURL: URL

Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extension ATProtoKit {
7676

7777
let request = apiClientService.createRequest(
7878
forRequest: queryURL,
79-
andMethod: .post,
79+
andMethod: .get,
8080
acceptValue: "application/json",
8181
contentTypeValue: nil,
8282
authorizationValue: authorizationValue

Sources/ATProtoKit/Models/Lexicons/app.bsky/Labeler/AppBskyLabelerDefs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ extension AppBskyLexicon.Labeler {
264264
///
265265
/// - Note: According to the AT Protocol specifications: "The label values which this
266266
/// labeler publishes. May include global or custom labels."
267-
public let labelValues: [ComAtprotoLexicon.Label.LabelValueDefinition]
267+
public let labelValues: [String]
268268

269269
/// An array of labeler-created labels. Optional.
270270
///

0 commit comments

Comments
 (0)