forked from rDrama/rDrama
gdf
parent
3704949ea5
commit
8153253215
|
@ -131,13 +131,13 @@ def notifications(v):
|
||||||
listing = []
|
listing = []
|
||||||
for c in comments:
|
for c in comments:
|
||||||
if c.parent_submission:
|
if c.parent_submission:
|
||||||
if not c.replies2:
|
if c.replies2 == None:
|
||||||
c.replies2 = []
|
c.replies2 = []
|
||||||
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
|
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
|
||||||
cids = cids | set(x.id for x in c.replies2)
|
cids = cids | set(x.id for x in c.replies2)
|
||||||
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
|
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
|
||||||
c = c.parent_comment
|
c = c.parent_comment
|
||||||
if not c.replies2:
|
if c.replies2:
|
||||||
c.replies2 = []
|
c.replies2 = []
|
||||||
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
|
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
|
||||||
cids = cids | set(x.id for x in c.replies2)
|
cids = cids | set(x.id for x in c.replies2)
|
||||||
|
|
Loading…
Reference in New Issue