diff --git a/web/app/assets/javascripts/invitationDialog.js b/web/app/assets/javascripts/invitationDialog.js index 419d4d493..b1997c051 100644 --- a/web/app/assets/javascripts/invitationDialog.js +++ b/web/app/assets/javascripts/invitationDialog.js @@ -179,7 +179,6 @@ var obj = { method: 'feed', link: signupUrl, - // link: signupUrl.replace(/localhost:3000/,'www.jamkazam.com'), picture: 'http://jamkazam.com/assets/logo.png', name: 'Join me on JamKazam', caption: 'Play live music in real-time sessions with others over the Internet, as if in the same room.', diff --git a/web/app/controllers/api_invited_users_controller.rb b/web/app/controllers/api_invited_users_controller.rb index 66c1a9340..bba99ec2f 100644 --- a/web/app/controllers/api_invited_users_controller.rb +++ b/web/app/controllers/api_invited_users_controller.rb @@ -10,7 +10,7 @@ class ApiInvitedUsersController < ApiController end def show - if 'facebook' == params[:id] + if InvitedUser::FB_MEDIUM == params[:id] @invited_user = current_user.facebook_invite! else @invited_user = InvitedUser.find(params[:id])