Added a callback to favorite posts