summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-10-04 19:23:18 +0200
committerLibravatar GitHub <noreply@github.com>2024-10-04 19:23:18 +0200
commitd3d6e3f920ee4b9c5909d0f03f9b21b953c3ce3c (patch)
tree1e8247b5316b6d008bacdee999a85dda0261b498
parent[bugfix] Include own account in conversation when no other accounts involved ... (diff)
downloadgotosocial-d3d6e3f920ee4b9c5909d0f03f9b21b953c3ce3c.tar.xz
[bugfix] Don't try to add nil filtered statuses to context (#3388)
-rw-r--r--internal/processing/common/status.go6
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)
}