Skip to content

Conversation

finestructure
Copy link
Member

@finestructure finestructure commented Dec 29, 2024

This removes the obsolete httpClient from AppEnvironment and moves mastodonPost from EnvironmentClient to HTTPClient.

I've confirmed that posting (and encoding) works as expected via our test account:

Screenshot 2024-12-29 at 18 36 48


// NB: _testEncodedURL is a callback that exists purely to be able to regression test the encoded value
static func post(client: Client, message: String, _testEncodedURL: (String) -> Void = { _ in }) async throws {
static func apiURL(with message: String) throws -> String {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change allowed us to get rid of this ugly hack with the trailing closure that was purely used for testing.

@finestructure finestructure merged commit 980d8df into main Dec 29, 2024
6 checks passed
@finestructure finestructure deleted the issue-3469-dependency-transition-12 branch December 29, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants