1
0

Fix getting user info from /user endpoint for link shares

This commit is contained in:
kolaente
2021-04-07 15:02:57 +02:00
parent cb0df3ebbc
commit 8ddc00bd29
7 changed files with 12 additions and 16 deletions

View File

@ -65,7 +65,7 @@ func (ta *TaskAttachment) NewAttachment(s *xorm.Session, f io.ReadCloser, realna
// Add an entry to the db
ta.FileID = file.ID
ta.CreatedBy, err = getUserOrLinkShareUser(s, a)
ta.CreatedBy, err = GetUserOrLinkShareUser(s, a)
if err != nil {
// remove the uploaded file if adding it to the db fails
if err2 := file.Delete(); err2 != nil {