Fix bugs in messaging

pull/1/merge
Thibault Duplessis 2012-05-28 02:58:54 +02:00
parent 31ae1425b6
commit 8d035b15d8
5 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ object Message extends LilaController {
implicit val req = ctx.body
forms.post.bindFromRequest.fold(
err io {
BadRequest(html.message.thread(thread, err) + "#bottom")
BadRequest(html.message.thread(thread, err))
},
text api.makePost(thread, text, me).map(post
Redirect(routes.Message.thread(thread.id) + "#bottom")

View File

@ -51,7 +51,7 @@ final class Api(
isByCreator = thread isCreator me)
val newThread = thread + post
for {
_ threadRepo saveIO thread
_ threadRepo saveIO newThread
otherUser userRepo byId (thread otherUserId me)
_ otherUser.fold(
other io(unreadCache invalidate other),

View File

@ -622,7 +622,6 @@ $.widget("lichess.game", {
var self = this;
if (reloadIfFail) {
location.reload();
//console.debug(error)
}
}
});

View File

@ -9,7 +9,7 @@ $.websocket = function(url, version, settings) {
},
options: {
name: "unnamed",
debug: true,
debug: false,
offlineDelay: 5000,
offlineTag: false,
pingData: JSON.stringify({t: "p"}),

1
todo
View File

@ -21,6 +21,7 @@ use play-navigator router case class MyRegexStr(value: String); implicit val MyR
http://codetunes.com/2012/05/09/scala-dsl-tutorial-writing-web-framework-router
use POST instead of GET where it makes sense
endgame sound http://en.lichess.org/forum/lichess-feedback/checkmate-sound-feature?page=1#1
set online when hitting a page
next deploy:
mongo lichess mongo_migration_user.js