File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,15 @@ public class MastodonInstance {
76
76
77
77
func createApp( name: String = " iMast " , redirect_uri: String = " imast://callback/ " ) -> Promise < MastodonApp > {
78
78
return Promise< MastodonApp> { resolve, reject in
79
- Alamofire . request ( " https:// " + self . hostName + " /api/v1/apps " , method : . post , parameters : [
79
+ var params = [
80
80
" client_name " : name,
81
81
" scopes " : " read write follow " ,
82
82
" redirect_uris " : redirect_uri,
83
- ] ) . responseJSON { res in
83
+ ]
84
+ if name == " iMast " {
85
+ params [ " website " ] = " https://cinderella-project.github.io/iMast/ "
86
+ }
87
+ Alamofire . request ( " https:// " + self . hostName+ " /api/v1/apps " , method: . post, parameters: params) . responseJSON { res in
84
88
if res. error != nil {
85
89
reject ( res. error!)
86
90
return
You can’t perform that action at this time.
0 commit comments