use IsRemoteOrLocal module in Comment model
simplify query for member.posts