cache: fix missing login in LegacyAuthorExcerpt causing panic

This commit is contained in:
Michael Muré 2020-03-05 21:56:43 +01:00
parent 17ca28c2df
commit e0a702f41d
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -95,7 +95,8 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
e.AuthorId = snap.Author.Id()
case *identity.Bare:
e.LegacyAuthor = LegacyAuthorExcerpt{
Name: snap.Author.Name(),
Login: snap.Author.Login(),
Name: snap.Author.Name(),
}
default:
panic("unhandled identity type")