Commit Graph

13 Commits

Author SHA1 Message Date
shannon 54d04aed4e Continue to make MastodonAuthenticationBox the standard form of passing user information
Further simplify the AuthenticationViewModel and the public interface of AuthenticationServiceProvider.

Publish currentActiveUser from AuthenticationServiceProvider instead of assuming all callers know to take the first in the list as the active one.

contributes to iOS-319
2024-11-19 12:09:55 -05:00
shannon d1ac4e8796 Fix build error 2024-11-15 14:33:31 -05:00
shannon 35f1280904 Make view models @MainActor 2024-11-15 14:15:01 -05:00
shannon 77f3c5a64d Combine AuthenticationService into AuthenticationServiceProvider
Also, AppContext, APIService, and AuthenticationServiceProvider are now more obviously singletons.

And AuthenticationServiceProvider can now be asked for the current active user, instead of every caller assuming the first element of a list of users is the active user.
2024-11-14 16:30:51 -05:00
Nathan Mattes be962f15d0 Add authorization to instance-calls (IOS-264)
This will improve using the app with `LIMITED_FEDERATION_INSTANCES`
2024-05-14 15:11:56 +02:00
Nathan Mattes a4b175ce9c Revert "Moderation Warning Notifications (IOS-264) (#1287)"
This reverts commit 794ffc002f.
2024-05-14 15:11:23 +02:00
Nathan Mattes 794ffc002f
Moderation Warning Notifications (IOS-264) (#1287)
* Add moderation-warning-notification-type (IOS-264)

* Add entity for new AccountWarning (IOS-264)

Details see https://github.com/mastodon/mastodon/pull/30065 for now, as there's no documentation (yet)

* re-add file header (IOS-264)

* Add authorization to instance-calls (IOS-264)

This will improve using the app with `LIMITED_FEDERATION_INSTANCES`

* Add basic cell for account-warnings (IOS-264)

* Show some content for a warning (IOS-264)

* Open strike in browser (IOS-264)

* Add localization (IOS-264)

* Add missing localization (IOS-264)

* Cleanup (IOS-264)
2024-05-14 15:07:05 +02:00
Marcus Kida 3ec9e603df
Improve "Open in Mastodon" by using Search API (#888)
* feat(ActionExtension): Improve "Open in Mastodon" by using Search aPI

* Add code comment
2023-01-16 23:36:00 +01:00
Marcus Kida fde4c14b49
feat(ActionExtension): Use same Regex for Username matching as in App 2023-01-12 10:11:11 +01:00
Marcus Kida 1121cdd80b
feat(ActionExtension): Update TouchBarBezel Color 2023-01-12 10:10:44 +01:00
Marcus Kida 5daaa5a32f
feat(AppExtension): Improve open in link validation, add L10n 2023-01-11 15:12:11 +01:00
Marcus Kida 68fe3cb8f2
feat(ActionExtension): Implement Open in Search as Fallback 2023-01-11 13:09:23 +01:00
Marcus Kida 89c808ea11
feat(ActionExtension): Improve ActionRequestHandler and Action.js, rename Extension 2023-01-10 16:40:55 +01:00