mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Change if(realm.domain == mit.edu) to use Realm.is_zephyr_mirror_realm.
This commit is contained in:
@@ -25,7 +25,7 @@ def check_and_create_attachments(apps, schema_editor):
|
||||
is_message_realm_public = False
|
||||
if message.recipient.type == STREAM:
|
||||
stream = Stream.objects.get(id=message.recipient.type_id)
|
||||
is_message_realm_public = not stream.invite_only and stream.realm.domain != "mit.edu"
|
||||
is_message_realm_public = not stream.invite_only and not stream.realm.is_zephyr_mirror_realm
|
||||
|
||||
if path_id is not None:
|
||||
attachment = Attachment.objects.create(
|
||||
|
||||
Reference in New Issue
Block a user