Ignore nested replies

This commit is contained in:
ekzyis 2024-10-16 19:51:55 +02:00
parent 2037fb0578
commit b6991ce3e5
1 changed files with 8 additions and 0 deletions

View File

@ -107,6 +107,14 @@ func tickGameProgress(c *sn.Client) {
continue
}
if parent, err := c.Item(n.Item.ParentId); err != nil {
log.Printf("failed to fetch parent %d of %d\n", n.Item.ParentId, n.Item.Id)
continue
} else if parent.User.Id != meId {
log.Printf("ignoring nested reply %d\n", n.Item.Id)
continue
}
if err = handleGameProgress(&n.Item); err != nil {
if err.Error() == "failed to parse game update" {