mirror of https://github.com/zulip/zulip.git
81e3f489f2
This change is mostly based on a similar commit from hackerkid in a feature branch. It borrows both code and ideas. Some of it's my own stuff, as I was working on a newer branch. We now call get_user_including_cross_realm_email() inside of user_profiles_from_unvalidated_emails(), instead of using get_user_profile_by_email. This requires a few of our callers to pass down sender into us. One consequence of this change is that we change the symptoms for trying to send to emails outside of your realm. In some cases, we simply raise an error that an email is invalid to us instead of getting into the deeper validate_recipient_user_profiles check. |
||
---|---|---|
.. | ||
fixtures | ||
lib | ||
management | ||
migrations | ||
templatetags | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py | ||
static_header.txt | ||
storage.py |