1
0

Make sure the author is returned when creating a new comment

This commit is contained in:
kolaente
2020-02-25 21:18:42 +01:00
parent 1f039c4cda
commit c551706b52
2 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,10 @@ func (tc *TaskComment) Create(a web.Auth) (err error) {
tc.AuthorID = a.GetID()
_, err = x.Insert(tc)
if err != nil {
return
}
tc.Author, err = user.GetUserByID(a.GetID())
return
}