diff options
author | 2024-07-13 11:07:01 +0200 | |
---|---|---|
committer | 2024-07-13 11:07:01 +0200 | |
commit | bbbdf01213b943ce7ef07e7b6d5f4f965013b102 (patch) | |
tree | 8cbd2259f2d6163d616762226f5b4bc049207adc /internal | |
parent | [feature/frontend] Better visual separation between "main" thread and "replie... (diff) | |
download | gotosocial-bbbdf01213b943ce7ef07e7b6d5f4f965013b102.tar.xz |
[bugfix] Fix panic in `isStatusHomeTimelineable` (#3096)
Diffstat (limited to 'internal')
-rw-r--r-- | internal/filter/visibility/home_timeline.go | 5 |
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) } } |