added rating functionality to posts only