forked from rDrama/rDrama
remove duplicated code
parent
5035f8b90a
commit
bf9230d864
|
@ -380,10 +380,7 @@ def comment(v):
|
||||||
else:
|
else:
|
||||||
title = f'New reply by @{c.author_name}'
|
title = f'New reply by @{c.author_name}'
|
||||||
|
|
||||||
if len(c.body) > PUSH_NOTIF_LIMIT: notifbody = c.body[:PUSH_NOTIF_LIMIT] + '...'
|
push_notif({parent_user.id}, title, c.body, c)
|
||||||
else: notifbody = c.body
|
|
||||||
|
|
||||||
push_notif({parent_user.id}, title, notifbody, c)
|
|
||||||
|
|
||||||
vote = CommentVote(user_id=v.id,
|
vote = CommentVote(user_id=v.id,
|
||||||
comment_id=c.id,
|
comment_id=c.id,
|
||||||
|
|
Loading…
Reference in New Issue