Store id of post for favorites.