[bugfix] Don't try to add nil filtered statuses to context (#3388)

This commit is contained in:
tobi 2024-10-04 19:23:18 +02:00 committed by GitHub
parent 8bd8c6fb45
commit d3d6e3f920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,6 +247,12 @@ func (p *Processor) GetVisibleAPIStatuses(
continue continue
} }
if apiStatus == nil {
// Status was
// filtered out.
continue
}
// Append converted status to return slice. // Append converted status to return slice.
apiStatuses = append(apiStatuses, *apiStatus) apiStatuses = append(apiStatuses, *apiStatus)
} }