Skip to content

Commit

Permalink
Merge branch 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterJ93 committed Nov 26, 2024
2 parents 0bb9218 + 028bb01 commit 2652618
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2652618

Please sign in to comment.