diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 9c99ea4b03..0236750dac 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - name: Bluesky API Touchers Discord - about: Please join this Discord server if you need real-time questions. + about: Please join this Discord server if you need real-time answers. url: https://discord.gg/3srmDsHSZJ diff --git a/Package.swift b/Package.swift index 9e125fcc50..8f2df617ae 100644 --- a/Package.swift +++ b/Package.swift @@ -27,7 +27,7 @@ let package = Package( .package(url: "https://github.com/swiftlang/swift-docc-plugin.git", from: "1.4.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.6.0"), .package(url: "https://github.com/MasterJ93/SwiftCBOR.git", from: "0.4.0"), - .package(url: "https://github.com/swiftlang/swift-syntax.git", from: "509.0.0") + .package(url: "https://github.com/swiftlang/swift-syntax.git", "509.0.0" ..< "601.0.0-prerelease") ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. diff --git a/Sources/ATProtoKit/APIReference/AppBskyAPI/GetPopularFeedGenerators.swift b/Sources/ATProtoKit/APIReference/AppBskyAPI/GetPopularFeedGenerators.swift index fb1fc4579c..3115475cee 100644 --- a/Sources/ATProtoKit/APIReference/AppBskyAPI/GetPopularFeedGenerators.swift +++ b/Sources/ATProtoKit/APIReference/AppBskyAPI/GetPopularFeedGenerators.swift @@ -35,6 +35,11 @@ extension ATProtoKit { limit: Int? = 50, cursor: String? = nil ) async throws -> AppBskyLexicon.Unspecced.GetPopularFeedGeneratorsOutput { + guard session != nil, + let accessToken = session?.accessToken else { + throw ATRequestPrepareError.missingActiveSession + } + guard let sessionURL = session?.pdsURL, let requestURL = URL(string: "\(sessionURL)/xrpc/app.bsky.unspecced.getPopularFeedGenerators") else { throw ATRequestPrepareError.invalidRequestURL @@ -68,7 +73,7 @@ extension ATProtoKit { andMethod: .get, acceptValue: "application/json", contentTypeValue: nil, - authorizationValue: nil + authorizationValue: "Bearer \(accessToken)" ) let response = try await APIClientService.shared.sendRequest( request,