Skip ancestor posts from others when building context

This commit is contained in:
Gabriel Garrido 2024-08-03 10:38:18 +02:00
parent ef96eeeb4f
commit 566e47a1f5

View file

@ -125,6 +125,10 @@ func (c *Client) buildOrphans() error {
for i := range statusContext.Ancestors[1:] { for i := range statusContext.Ancestors[1:] {
post := statusContext.Ancestors[i+1] post := statusContext.Ancestors[i+1]
if post.Account.Id != c.account.Id {
continue
}
c.postIdMap[post.Id] = &post c.postIdMap[post.Id] = &post
top.descendants = append(top.descendants, &post) top.descendants = append(top.descendants, &post)
} }