diff options
author | Mario <mario@mariovavti.com> | 2020-04-01 18:13:00 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-04-01 18:13:00 +0000 |
commit | d925ec675984d59b750c91bdd53106ea414bcf71 (patch) | |
tree | dac50c6439acb5e064b04c3a08b6ca7e486d820a /Zotlabs/Daemon/Notifier.php | |
parent | 38be2386dd63a4a18c07e445b9859a5836ed5b46 (diff) | |
download | volse-hubzilla-d925ec675984d59b750c91bdd53106ea414bcf71.tar.gz volse-hubzilla-d925ec675984d59b750c91bdd53106ea414bcf71.tar.bz2 volse-hubzilla-d925ec675984d59b750c91bdd53106ea414bcf71.zip |
fix outgoing mails to zot connections
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-rw-r--r-- | Zotlabs/Daemon/Notifier.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php index fdf0148a6..d66079216 100644 --- a/Zotlabs/Daemon/Notifier.php +++ b/Zotlabs/Daemon/Notifier.php @@ -737,10 +737,16 @@ class Notifier { } if(stripos($hub['site_project'], 'hubzilla') !== false && version_compare($hub['site_version'], '4.7.3', '<=')) { - $encoded_item['owner']['network'] = 'zot'; - $encoded_item['owner']['guid_sig'] = str_replace('sha256.', '', $encoded_item['owner']['guid_sig']); - $encoded_item['author']['network'] = 'zot'; - $encoded_item['author']['guid_sig'] = str_replace('sha256.', '', $encoded_item['author']['guid_sig']); + if($encoded_item['type'] === 'mail') { + $encoded_item['from']['network'] = 'zot'; + $encoded_item['from']['guid_sig'] = str_replace('sha256.', '', $encoded_item['from']['guid_sig']); + } + else { + $encoded_item['owner']['network'] = 'zot'; + $encoded_item['owner']['guid_sig'] = str_replace('sha256.', '', $encoded_item['owner']['guid_sig']); + $encoded_item['author']['network'] = 'zot'; + $encoded_item['author']['guid_sig'] = str_replace('sha256.', '', $encoded_item['author']['guid_sig']); + } } queue_insert( |