summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-10-05 11:36:01 +0200
committerLibravatar GitHub <noreply@github.com>2024-10-05 11:36:01 +0200
commit37a3d224a780766af2cf8471d32edeea8ba9e755 (patch)
treebd975ff0ffa897db2e2e34f1dff5dcd996036be0
parent[bugfix] Don't try to add nil filtered statuses to context (#3388) (diff)
downloadgotosocial-37a3d224a780766af2cf8471d32edeea8ba9e755.tar.xz
[bugfix] Account for nil reply when serializing int req (#3389)
-rw-r--r--internal/typeutils/internaltofrontend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go
index 76d8ec81b..6bd6d0900 100644
--- a/internal/typeutils/internaltofrontend.go
+++ b/internal/typeutils/internaltofrontend.go
@@ -2711,7 +2711,7 @@ func (c *Converter) InteractionReqToAPIInteractionReq(
}
var reply *apimodel.Status
- if req.InteractionType == gtsmodel.InteractionReply {
+ if req.InteractionType == gtsmodel.InteractionReply && req.Reply != nil {
reply, err = c.statusToAPIStatus(
ctx,
req.Reply,