From e0a702f41d844cef3e0d7bd0f9e986408fdfbe9a Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 5 Mar 2020 21:56:43 +0100 Subject: cache: fix missing login in LegacyAuthorExcerpt causing panic --- cache/bug_excerpt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cache') diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go index d0d0aa60..36c7dcfe 100644 --- a/cache/bug_excerpt.go +++ b/cache/bug_excerpt.go @@ -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") -- cgit