diff options
author | 2024-10-04 19:23:18 +0200 | |
---|---|---|
committer | 2024-10-04 19:23:18 +0200 | |
commit | d3d6e3f920ee4b9c5909d0f03f9b21b953c3ce3c (patch) | |
tree | 1e8247b5316b6d008bacdee999a85dda0261b498 /internal/processing | |
parent | [bugfix] Include own account in conversation when no other accounts involved ... (diff) | |
download | gotosocial-d3d6e3f920ee4b9c5909d0f03f9b21b953c3ce3c.tar.xz |
[bugfix] Don't try to add nil filtered statuses to context (#3388)
Diffstat (limited to 'internal/processing')
-rw-r--r-- | internal/processing/common/status.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/processing/common/status.go b/internal/processing/common/status.go index dd83a2cc5..da5cf1290 100644 --- a/internal/processing/common/status.go +++ b/internal/processing/common/status.go @@ -247,6 +247,12 @@ func (p *Processor) GetVisibleAPIStatuses( continue } + if apiStatus == nil { + // Status was + // filtered out. + continue + } + // Append converted status to return slice. apiStatuses = append(apiStatuses, *apiStatus) } |