Fix mirroring of personals.

(imported from commit 91ae9e6bb20389a708bd6b1945c898b98b96ee4a)
This commit is contained in:
Tim Abbott 2012-10-22 17:20:38 -04:00
parent f817bf6144
commit bce793005d

View File

@ -411,7 +411,7 @@ def already_sent_mirrored_message(request):
def same_realm_email(user_profile, email):
try:
domain = email.split("@", 1)[1]
return user_profile.realm.email == domain
return user_profile.realm.domain == domain
except:
return False