Hi,
here the code:
the custom work at jomsocial core it self. this changes will be disappear if you upgrading your jomsocial
unzip that file and put it at:
/components/com_community/views/photos/view.html.php
and make sure you backup the original file first, before replacing it with that one.
Regards