chore: set app website
This commit is contained in:
parent
f712aa2c0f
commit
c86c29afe7
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue