Add check for photos as well as like to the controller