moved posts related stuff to user/posts.js