fix irrelevant replies in notifs

pull/135/head
Aevann 2023-02-27 03:56:10 +02:00
parent 90c586a4fa
commit 6e3dd62a47
1 changed files with 4 additions and 1 deletions

View File

@ -359,7 +359,10 @@ def notifications(v:User):
listing2 = []
for x in listing:
if x.parent_comment_id:
listing2.append(x.parent_comment)
parent = x.parent_comment
if parent.replies2 == None:
parent.replies2 = [x]
listing2.append(parent)
else:
listing2.append(x)
listing = listing2