summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/filter/visibility/home_timeline.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/filter/visibility/home_timeline.go b/internal/filter/visibility/home_timeline.go
index 0a3fbde4e..af583a847 100644
--- a/internal/filter/visibility/home_timeline.go
+++ b/internal/filter/visibility/home_timeline.go
@@ -161,12 +161,13 @@ func (f *Filter) isStatusHomeTimelineable(ctx context.Context, owner *gtsmodel.A
}
// Fetch next parent in conversation.
+ inReplyToID := next.InReplyToID
next, err = f.state.DB.GetStatusByID(
gtscontext.SetBarebones(ctx),
- next.InReplyToID,
+ inReplyToID,
)
if err != nil {
- return false, gtserror.Newf("error getting status parent %s: %w", next.InReplyToID, err)
+ return false, gtserror.Newf("error getting status parent %s: %w", inReplyToID, err)
}
}