justquick/django-activity-stream — Issue #45: user_stream returns empty set on follow >1 
Author: mfitzp
Created: 2011-11-05 15:21:14+00:00
State: open

In managers.py the following code:

qs = self.get_query_set()
for follow in Follow.objects.filter(user=object).select_related('actor'):
if follow.actor:
qs &= follow.actor.actor_actions.public(**kwargs)
return qs

It iterates over the Follow objects applying a filter to the default queryset (all items). It appears on testing here that if you follow >1 object this always returns an empty set.

Should this not instead build a Q object of OR comparisons to the actor_actions?