diff --git a/app/assets/index.html b/app/assets/index.html
index 567a2f9bf..0bb824a1b 100644
--- a/app/assets/index.html
+++ b/app/assets/index.html
@@ -76,8 +76,8 @@
// Additional JS functions here
window.fbAsyncInit = function() {
FB.init({
- appId : '148832601965463', // App ID
- channelUrl : 'http://codecombat.com/channel.html', // Channel File
+ appId : document.location.origin === 'http://localhost:3000' ? '607435142676437' : '148832601965463', // App ID
+ channelUrl : document.location.origin +'/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
diff --git a/app/templates/home.jade b/app/templates/home.jade
index ba496db05..9e5d3be94 100644
--- a/app/templates/home.jade
+++ b/app/templates/home.jade
@@ -5,7 +5,7 @@ block content
h1#site-slogan(data-i18n="home.slogan") Learn to Code JavaScript by Playing a Game
#trailer-wrapper
-
+
img(src="/images/pages/home/video_border.png")
hr
diff --git a/server/levels/level_handler.coffee b/server/levels/level_handler.coffee
index cdb1936cb..21a0bcc42 100644
--- a/server/levels/level_handler.coffee
+++ b/server/levels/level_handler.coffee
@@ -183,7 +183,6 @@ LevelHandler = class LevelHandler extends Handler
query.exec (err, sessionResults) ->
return res.send([]) unless sessionResults.length
- res.send(sessionResults)
userMap = {}
userMap[u._id] = u.facebookID for u in userResults
session.facebookID = userMap[session.creator] for session in sessionResults
diff --git a/server/queues/scoring.coffee b/server/queues/scoring.coffee
index b9883347e..f4fc91a91 100644
--- a/server/queues/scoring.coffee
+++ b/server/queues/scoring.coffee
@@ -201,8 +201,8 @@ determineIfSessionShouldContinueAndUpdateLog = (sessionID, sessionRank, cb) ->
updatedSession = updatedSession.toObject()
totalNumberOfGamesPlayed = updatedSession.numberOfWinsAndTies + updatedSession.numberOfLosses
- if totalNumberOfGamesPlayed < 5
- console.log "Number of games played is less than 5, continuing..."
+ if totalNumberOfGamesPlayed < 10
+ console.log "Number of games played is less than 10, continuing..."
cb null, true
else
ratio = (updatedSession.numberOfLosses) / (totalNumberOfGamesPlayed)
@@ -231,7 +231,7 @@ findNearestBetterSessionID = (levelOriginalID, levelMajorVersion, sessionID, ses
team: opposingTeam
if opponentSessionTotalScore < 30
- queryParameters["totalScore"]["$gt"] = opponentSessionTotalScore + 1
+ queryParameters["totalScore"]["$gt"] = opponentSessionTotalScore + 2
limitNumber = 1