Page MenuHomePhabricator

D16772.id40398.diff
No OneTemporary

D16772.id40398.diff

diff --git a/src/applications/calendar/storage/PhabricatorCalendarEvent.php b/src/applications/calendar/storage/PhabricatorCalendarEvent.php
--- a/src/applications/calendar/storage/PhabricatorCalendarEvent.php
+++ b/src/applications/calendar/storage/PhabricatorCalendarEvent.php
@@ -758,8 +758,18 @@
$host_handle = $handles[$host_phid];
$host_name = $host_handle->getFullName();
- $host_uri = $host_handle->getURI();
- $host_uri = PhabricatorEnv::getURI($host_uri);
+
+ // NOTE: Gmail shows "Who: Unknown Organizer*" if the organizer URI does
+ // not look like an email address. Use a synthetic address so it shows
+ // the host name instead.
+ $install_uri = PhabricatorEnv::getProductionURI('/');
+ $install_uri = new PhutilURI($install_uri);
+
+ // This should possibly use "metamta.reply-handler-domain" instead, but
+ // we do not currently accept mail for users anyway, and that option may
+ // not be configured.
+ $mail_domain = $install_uri->getDomain();
+ $host_uri = "mailto:{$host_phid}@{$mail_domain}";
$organizer = id(new PhutilCalendarUserNode())
->setName($host_name)

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 20, 8:22 PM (4 w, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712650
Default Alt Text
D16772.id40398.diff (1 KB)

Event Timeline