Fix ignore bug
This commit is contained in:
parent
2f8ef1b524
commit
64bdffb590
1 changed files with 4 additions and 1 deletions
|
@ -276,7 +276,10 @@ def get_status_context(request, include_ignored=False):
|
|||
ignored_users = Profile.objects.none()
|
||||
queryset = Profile.objects
|
||||
else:
|
||||
ignored_users = Ignore.get_ignored_users(request.profile)
|
||||
try:
|
||||
ignored_users = Ignore.get_ignored_users(request.profile)
|
||||
except:
|
||||
ignored_users = Profile.objects.none()
|
||||
queryset = Profile.objects.exclude(id__in=ignored_users)
|
||||
|
||||
last_two_minutes = timezone.now()-timezone.timedelta(minutes=2)
|
||||
|
|
Loading…
Reference in a new issue