chore: set app website

This commit is contained in:
CMK 2021-07-26 16:15:50 +08:00
parent f712aa2c0f
commit c86c29afe7
1 changed files with 3 additions and 1 deletions

View File

@ -19,11 +19,13 @@ extension APIService {
private static let clientName = "Mastodon for iOS" private static let clientName = "Mastodon for iOS"
#endif #endif
private static let appWebsite = "https://joinmastodon.org/apps"
func createApplication(domain: String) -> AnyPublisher<Mastodon.Response.Content<Mastodon.Entity.Application>, Error> { func createApplication(domain: String) -> AnyPublisher<Mastodon.Response.Content<Mastodon.Entity.Application>, Error> {
let query = Mastodon.API.App.CreateQuery( let query = Mastodon.API.App.CreateQuery(
clientName: APIService.clientName, clientName: APIService.clientName,
redirectURIs: MastodonAuthenticationController.callbackURL, redirectURIs: MastodonAuthenticationController.callbackURL,
website: nil website: APIService.appWebsite
) )
return Mastodon.API.App.create( return Mastodon.API.App.create(
session: session, session: session,