From 16626ceb4f214f360cba40b232a4fb0594728748 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 15 Aug 2022 20:10:45 +0200 Subject: [PATCH] reduce max notification depth from 50 to 10 --- files/routes/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index dbe5d83d8..ee3991dac 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -241,7 +241,7 @@ def notifications(v): for x in c.replies2: if x.replies2 == None: x.replies2 = [] count = 0 - while count < 50 and c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment.id in cids): + while count < 10 and c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment.id in cids): count += 1 c = c.parent_comment if c.replies2 == None: