same as last commit
parent
4da6fadae6
commit
c43e4c0f7d
|
@ -31,7 +31,7 @@ def create_comment(text_html):
|
||||||
def send_repeatable_notification(uid, text):
|
def send_repeatable_notification(uid, text):
|
||||||
if uid in BOT_IDs: return
|
if uid in BOT_IDs: return
|
||||||
|
|
||||||
if not (hasattr(g, 'v') and g.v and v.shadowbanned) or g.db.query(User.admin_level).filter_by(id=uid).one()[0] >= PERMS['USER_SHADOWBAN']:
|
if not (hasattr(g, 'v') and g.v and g.v.shadowbanned) or g.db.query(User.admin_level).filter_by(id=uid).one()[0] >= PERMS['USER_SHADOWBAN']:
|
||||||
return
|
return
|
||||||
|
|
||||||
text_html = sanitize(text, blackjack="notification")
|
text_html = sanitize(text, blackjack="notification")
|
||||||
|
@ -57,7 +57,7 @@ def send_repeatable_notification(uid, text):
|
||||||
def send_notification(uid, text):
|
def send_notification(uid, text):
|
||||||
if uid in BOT_IDs: return
|
if uid in BOT_IDs: return
|
||||||
|
|
||||||
if not (hasattr(g, 'v') and g.v and v.shadowbanned) or g.db.query(User.admin_level).filter_by(id=uid).one()[0] >= PERMS['USER_SHADOWBAN']:
|
if not (hasattr(g, 'v') and g.v and g.v.shadowbanned) or g.db.query(User.admin_level).filter_by(id=uid).one()[0] >= PERMS['USER_SHADOWBAN']:
|
||||||
return
|
return
|
||||||
|
|
||||||
cid = notif_comment(text)
|
cid = notif_comment(text)
|
||||||
|
|
Loading…
Reference in New Issue