Fixed #4726 infinite photo stream
Merge pull request #4787 from hincupetru/4726-infinite-photo-stream

Added limit by max_time to photos#index for prevent "infinite photo stream"