diff options
author | friendica <info@friendica.com> | 2014-12-22 18:05:34 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-12-22 18:05:34 -0800 |
commit | f66df5e137313b2332c6b7e5eb517fb079327ad8 (patch) | |
tree | e9f0c20ad8f67d2a13017e4d9c66054546b6096e /include/Contact.php | |
parent | 63ae4b515022843cadb27940c13f2b72a8c5faa5 (diff) | |
download | volse-hubzilla-f66df5e137313b2332c6b7e5eb517fb079327ad8.tar.gz volse-hubzilla-f66df5e137313b2332c6b7e5eb517fb079327ad8.tar.bz2 volse-hubzilla-f66df5e137313b2332c6b7e5eb517fb079327ad8.zip |
direct messages in api have some issues, not properly ported from friendica originally. Here's a start.
I think at best they may return encrypted gibberish currently, but let's work through them one at a time.
Diffstat (limited to 'include/Contact.php')
-rw-r--r-- | include/Contact.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/Contact.php b/include/Contact.php index 4b45a2392..233798181 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -594,7 +594,8 @@ function random_profile() { if(!$r) return ''; // Couldn't get a random channel if($checkrandom) { - if(z_fetch_url($r[0]['xchan_url'])['success']) + $x = z_fetch_url($r[0]['xchan_url']); + if($x['success']) return $r[0]['xchan_url']; else logger('Random channel turned out to be bad.'); |