Fix ignore bug

This commit is contained in:
cuom1999 2021-11-20 22:28:41 -06:00
parent 2f8ef1b524
commit 64bdffb590

View file

@ -276,7 +276,10 @@ def get_status_context(request, include_ignored=False):
ignored_users = Profile.objects.none()
queryset = Profile.objects
else:
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)