How to stop photo comments posting to the river

Does any one know how and where to stop photo comments from posting to the river?

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking