remove duplicated function definition

@evgenyfadeev looks like you had a conflict in the post.js and was resolved incorrectly