mirror of
https://github.com/adulau/mastodon-markdown-archive.git
synced 2024-12-22 08:36:03 +00:00
Skip ancestor posts from others when building context
This commit is contained in:
parent
ef96eeeb4f
commit
566e47a1f5
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue