> How long will it take for a photon emitted by A to reach B? Well, it won't reach it because it will hit the start that's in between.
Now imagine that it's not a star, but a black hole with a small radius to make arguments easier. You shoot a photon slightly off the axis, and it gets deflected.
You can try to treat a photon as a moving object, and integrate the forces acting on it. Taking Lorentz transformations into account, of course.
But the thing is, your calculations will be off, and the experimental results won't match your predictions. You will need to take into account that the lightspeed near massive objects is _slower_ for distant observers.
Another example, suppose that you have a star surrounded by a massive cloud of fog. Somebody shoots a laser beam from one side of the fog bank to another, while you are far away from the star. The fog is there just to allow you to see the beam as it moves, it does not by itself slow the light.
But you will actually see the light moving _slower_ than lightspeed!
Or equivalently, you can take a clock that ticks every second. And if you lower that clock to the surface of a planet, you will see the clock ticking slower. And this is a very real effect, we have to correct for it in the GPS satellites.