favourites with a where clause and using posts/index. Patch for heroku