Flattened the user relation on posts, and fixed a scope issue in the store