fix auth and post creation

This commit is contained in:
Pedro Nasser
2016-09-01 14:57:50 -03:00
parent 10de43f8d8
commit cd3e045f54
4 changed files with 22 additions and 65 deletions

View File

@@ -24,6 +24,8 @@ func HandlePostCreate(db *database.Database, auth map[string]interface{}) {
return
}
post.User = auth["user"].(string)
SendResponse(Response{
"post": post,
})