justquick/django-activity-stream — pull request #55 by wfscheper (2011-12-21 20:50:25+00:00)
Title: user_stream returns all actions if user is not following any actors

ActionManager.user has no code path to handle the case where follow_gfks is empty, which causes it to return all public actions when the user has not followed any actors.

I changed ActionManager.user to return a EmptyGFKQuerySet if follow_gfks is empty. I also had to adjust the stream decorator, because Django returns a list, not a QuerySet, when you slice an EmptyQuerySet. Includes a simple regression test.