mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 10:12:06 +03:00
Merge pull request #644 from MichaelMure/fix-actors-participants
cache: fix empty actors/participants in the index
This commit is contained in:
commit
271ca35d19
8
cache/bug_excerpt.go
vendored
8
cache/bug_excerpt.go
vendored
@ -59,16 +59,12 @@ func (l LegacyAuthorExcerpt) DisplayName() string {
|
||||
func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
|
||||
participantsIds := make([]entity.Id, 0, len(snap.Participants))
|
||||
for _, participant := range snap.Participants {
|
||||
if _, ok := participant.(*identity.Identity); ok {
|
||||
participantsIds = append(participantsIds, participant.Id())
|
||||
}
|
||||
participantsIds = append(participantsIds, participant.Id())
|
||||
}
|
||||
|
||||
actorsIds := make([]entity.Id, 0, len(snap.Actors))
|
||||
for _, actor := range snap.Actors {
|
||||
if _, ok := actor.(*identity.Identity); ok {
|
||||
actorsIds = append(actorsIds, actor.Id())
|
||||
}
|
||||
actorsIds = append(actorsIds, actor.Id())
|
||||
}
|
||||
|
||||
e := &BugExcerpt{
|
||||
|
Loading…
Reference in New Issue
Block a user