Account for @here too, they share same policy

This commit is contained in:
Jeremy Zhang 2017-05-10 02:01:36 -07:00
parent f87465e555
commit 070d354c48

View File

@ -130,8 +130,11 @@ def format_post_content(guild_id, message):
return (message, illegal_post, illegal_reasons) return (message, illegal_post, illegal_reasons)
def format_everyone_mention(channel, content): def format_everyone_mention(channel, content):
if not channel["mention_everyone"] and "@everyone" in content: if not channel["mention_everyone"]:
content = content.replace("@everyone", u"@\u200Beveryone") if "@everyone" in content:
content = content.replace("@everyone", u"@\u200Beveryone")
if "@here" in content:
content = content.replace("@here", u"@\u200Bhere")
return content return content
def get_member_roles(guild_id, user_id): def get_member_roles(guild_id, user_id):