diff options
author | redmatrix <git@macgirvin.com> | 2016-05-21 18:18:33 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-21 18:18:33 -0700 |
commit | 1cb311cef9848178780e3fd52814bf3a64ed0556 (patch) | |
tree | c6b8d41d8f30f51c6b8637f6af19f6efd75d1475 /Zotlabs/Module/Mail.php | |
parent | ed56b6e67b27900e2ff413a7781c9095aa8251a0 (diff) | |
download | volse-hubzilla-1cb311cef9848178780e3fd52814bf3a64ed0556.tar.gz volse-hubzilla-1cb311cef9848178780e3fd52814bf3a64ed0556.tar.bz2 volse-hubzilla-1cb311cef9848178780e3fd52814bf3a64ed0556.zip |
finish updating zot_finger instances
Diffstat (limited to 'Zotlabs/Module/Mail.php')
-rw-r--r-- | Zotlabs/Module/Mail.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Zotlabs/Module/Mail.php b/Zotlabs/Module/Mail.php index e6487d681..3dbfa8d71 100644 --- a/Zotlabs/Module/Mail.php +++ b/Zotlabs/Module/Mail.php @@ -32,17 +32,16 @@ class Mail extends \Zotlabs\Web\Controller { if(! $recipient) { $channel = \App::get_channel(); - $ret = zot_finger($rstr,$channel); + $j = \Zotlabs\Zot\Finger::run($rstr,$channel); - if(! $ret['success']) { + if(! $j['success']) { notice( t('Unable to lookup recipient.') . EOL); return; } - $j = json_decode($ret['body'],true); logger('message_post: lookup: ' . $url . ' ' . print_r($j,true)); - if(! ($j['success'] && $j['guid'])) { + if(! $j['guid']) { notice( t('Unable to communicate with requested channel.')); return; } |