updated filter:post.getPosts hook