method for liking posts