(refs #28)Display avatar icon on the activity timeline.

This commit is contained in:
takezoe
2013-07-10 14:37:00 +09:00
parent 2da756692b
commit 248079f041
7 changed files with 19 additions and 7 deletions

View File

@@ -55,7 +55,10 @@ trait AccountControllerBase extends ControllerBase {
getAccountByUserName(userName).flatMap(_.image).map { image =>
contentType = FileUtil.getMimeType(image)
new java.io.File(getUserUploadDir(userName), image)
} getOrElse NotFound
} getOrElse {
contentType = "image/png"
Thread.currentThread.getContextClassLoader.getResourceAsStream("noimage.png")
}
}
get("/:userName/_edit")(oneselfOnly {