Eienstien proved that light bends around the earth proving Newton obsolete. However, gravity attract mass(say a comet or an asteroid) given the size and weight of an object I would say a photon is weighs very little. Not all energy from the sun makes it into earth atomophere.