From 566e47a1f54f5104a73ff2c1661ecb2f7654c72e Mon Sep 17 00:00:00 2001 From: Gabriel Garrido Date: Sat, 3 Aug 2024 10:38:18 +0200 Subject: [PATCH] Skip ancestor posts from others when building context --- client/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/client.go b/client/client.go index 2eee43e..61d9c8d 100644 --- a/client/client.go +++ b/client/client.go @@ -125,6 +125,10 @@ func (c *Client) buildOrphans() error { for i := range statusContext.Ancestors[1:] { post := statusContext.Ancestors[i+1] + if post.Account.Id != c.account.Id { + continue + } + c.postIdMap[post.Id] = &post top.descendants = append(top.descendants, &post) }