dfMerge branch 'frost' of https://github.com/Aevann1/Drama into frost

remotes/1693045480750635534/spooky-22
Aevann1 2022-05-14 18:09:31 +00:00
commit e4339dd9df
2 changed files with 1 additions and 3 deletions

View File

@ -84,8 +84,6 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None):
if comment.post and comment.post.club and not (v and (v.paid_dues or v.id in [comment.author_id, comment.post.author_id])): abort(403)
if comment.post and comment.post.private and not (v and (v.admin_level > 1 or v.id == comment.post.author.id)): abort(403)
if not comment.parent_submission and not (v and (comment.author.id == v.id or comment.sentto == v.id)) and not (v and v.admin_level > 1) : abort(403)
if not pid:

View File

@ -128,7 +128,7 @@ def notifications(v):
for x in c.replies2:
if x.replies2 == None: x.replies2 = []
count = 0
while count < 20 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: