hide deleted statuses from threads
This commit is contained in:
parent
0d614c7ebb
commit
10a0a6ac37
|
@ -42,7 +42,8 @@ def get_replies(status):
|
||||||
''' get all direct replies to a status '''
|
''' get all direct replies to a status '''
|
||||||
#TODO: this limit could cause problems
|
#TODO: this limit could cause problems
|
||||||
return models.Status.objects.filter(
|
return models.Status.objects.filter(
|
||||||
reply_parent=status
|
reply_parent=status,
|
||||||
|
deleted=False,
|
||||||
).select_subclasses().all()[:10]
|
).select_subclasses().all()[:10]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue