Strange error in groupped_by function

From looking at the code that causes this panic it seems like your parents (== posts) don’t contain an entity with a id given by your childs (== users).
Without any additional code like your schema definition or the corresponding queryable structs it is quite hard to answer this with more details.