fix: reset id before creating
(cherry picked from commit c252c8f0cd1c09a74b564e67a855cca4cd436585)
This commit is contained in:
@ -154,6 +154,7 @@ func (share *LinkSharing) Create(s *xorm.Session, a web.Auth) (err error) {
|
||||
share.SharingType = SharingTypeWithoutPassword
|
||||
}
|
||||
|
||||
share.ID = 0
|
||||
_, err = s.Insert(share)
|
||||
share.Password = ""
|
||||
share.SharedBy, _ = user.GetFromAuth(a)
|
||||
|
Reference in New Issue
Block a user