fix game export
parent
891332302e
commit
0e7b5f3cf4
|
@ -1,14 +1,13 @@
|
|||
package controllers
|
||||
|
||||
import lila.app._
|
||||
import views._
|
||||
import lila.security.Permission
|
||||
import lila.user.{ Context, User ⇒ UserModel, UserRepo }
|
||||
import lila.user.tube.userTube
|
||||
import lila.db.api.$find
|
||||
import lila.common.LilaCookie
|
||||
|
||||
import lila.db.api.$find
|
||||
import lila.security.Permission
|
||||
import lila.user.tube.userTube
|
||||
import lila.user.{ Context, User ⇒ UserModel, UserRepo }
|
||||
import play.api.mvc._, Results._
|
||||
import views._
|
||||
|
||||
object User extends LilaController {
|
||||
|
||||
|
@ -127,11 +126,13 @@ object User extends LilaController {
|
|||
|
||||
def export(username: String) = Open { implicit ctx ⇒
|
||||
OptionFuResult(UserRepo named username) { u ⇒
|
||||
Env.game export u map { Redirect(_) }
|
||||
Env.game export u map { url ⇒
|
||||
Redirect(Env.api.Net.Protocol + Env.api.Net.AssetDomain + url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private def onlineUsers: Fu[List[UserModel]] =
|
||||
private def onlineUsers: Fu[List[UserModel]] =
|
||||
$find byIds env.onlineUserIdMemo.keys map {
|
||||
_ sortBy (-_.elo)
|
||||
}
|
||||
|
|
1
todo
1
todo
|
@ -71,7 +71,6 @@ customize piece images
|
|||
opera bug http://postimg.org/image/zcv8hse8n/full/
|
||||
customize sound notifications http://imgur.com/70WVyb5
|
||||
show friend game results on timeline
|
||||
export game is broken http://en.lichess.org/forum/lichess-feedback/i-have-two-problems#1
|
||||
profile tweaks proposed by clarkey http://i.imgur.com/C57qoRC.jpg
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue