about summary refs log tree commit diff
path: root/app/controllers/api/v1/apps_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-15 13:23:47 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-15 13:23:47 +0100
commitab165547fdf556b10b80898c030d54e20bff50af (patch)
treec9478742222e0f73fe4049edbc6840d3020eb235 /app/controllers/api/v1/apps_controller.rb
parent1f7c0ad8d3d336b036d16272716e41812f65f5d9 (diff)
parentf81dc7a33ae975b640089e474b01c2081119f372 (diff)
Merge branch 'feature/toot-app-source' of https://github.com/ineffyble/mastodon into ineffyble-feature/toot-app-source
Diffstat (limited to 'app/controllers/api/v1/apps_controller.rb')
-rw-r--r--app/controllers/api/v1/apps_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/apps_controller.rb b/app/controllers/api/v1/apps_controller.rb
index 1b33770f4..ca9dd0b7e 100644
--- a/app/controllers/api/v1/apps_controller.rb
+++ b/app/controllers/api/v1/apps_controller.rb
@@ -4,6 +4,6 @@ class Api::V1::AppsController < ApiController
   respond_to :json
 
   def create
-    @app = Doorkeeper::Application.create!(name: params[:client_name], redirect_uri: params[:redirect_uris], scopes: (params[:scopes] || Doorkeeper.configuration.default_scopes))
+    @app = Doorkeeper::Application.create!(name: params[:client_name], redirect_uri: params[:redirect_uris], scopes: (params[:scopes] || Doorkeeper.configuration.default_scopes), website: params[:website])
   end
 end