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.
This commit is contained in:
friendica
2014-12-22 18:05:34 -08:00
parent 63ae4b5150
commit f66df5e137
2 changed files with 12 additions and 10 deletions

View File

@@ -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.');