CharlesGust/django-imagr — pull request #26 by BFriedland (2014-11-20 01:17:34+00:00)
Title: Added shared checking to photo/album pages

The part where I added:
((this_photo.published == 'shared') and (this_user.following.filter(pk=this_photo.user_id)[0].id == this_photo.user_id))
That returns True if the photo is marked 'shared' and the user is following the user who owns the photo.