diff options
author | friendica <info@friendica.com> | 2014-09-04 19:34:27 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-04 19:34:27 -0700 |
commit | ad58fe893db1335ac6a4f6ef45e7e8e32595042e (patch) | |
tree | 6e1c74e518d53698100e40c01e92a6bbd70ba34a | |
parent | 1e5e70fcf4a223601db8f8973626cce1efd6bc28 (diff) | |
download | volse-hubzilla-ad58fe893db1335ac6a4f6ef45e7e8e32595042e.tar.gz volse-hubzilla-ad58fe893db1335ac6a4f6ef45e7e8e32595042e.tar.bz2 volse-hubzilla-ad58fe893db1335ac6a4f6ef45e7e8e32595042e.zip |
fix poco network
-rw-r--r-- | mod/poco.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/poco.php b/mod/poco.php index 9295f13de..c1696e4cd 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -167,8 +167,11 @@ function poco_init(&$a) { $entry['displayName'] = $rr['xchan_name']; if($fields_ret['urls']) { $entry['urls'] = array(array('value' => $rr['xchan_url'], 'type' => 'profile')); + $network = $rr['xchan_network']; + if(strpos($network,'friendica') !== false) + $network = 'friendica'; if($rr['xchan_addr']) - $entry['urls'][] = array('value' => 'acct:' . $rr['xchan_addr'], 'type' => 'zot'); + $entry['urls'][] = array('value' => 'acct:' . $rr['xchan_addr'], 'type' => $network); } if($fields_ret['preferredUsername']) $entry['preferredUsername'] = substr($rr['xchan_addr'],0,strpos($rr['xchan_addr'],'@')); |