mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fix auth and post creation
This commit is contained in:
@@ -24,6 +24,8 @@ func HandlePostCreate(db *database.Database, auth map[string]interface{}) {
|
||||
return
|
||||
}
|
||||
|
||||
post.User = auth["user"].(string)
|
||||
|
||||
SendResponse(Response{
|
||||
"post": post,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user