CharlesGust/django-imagr — pull request #27 by BFriedland (2014-11-20 01:43:48+00:00)
Title: Corrected shared checking for nonfollowed case

In the previous commit I forgot to test what happens if the user is not following the person, even though I checked all the 'published' cases. It failed the check because you can't get the id of item zero in an empty list.
I fixed it by making the ID -1 if there was no list, which properly fails the conditional without crashing the page.