aboutsummaryrefslogtreecommitdiffstats
path: root/mod/poco.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-04 19:34:27 -0700
committerfriendica <info@friendica.com>2014-09-04 19:34:27 -0700
commitad58fe893db1335ac6a4f6ef45e7e8e32595042e (patch)
tree6e1c74e518d53698100e40c01e92a6bbd70ba34a /mod/poco.php
parent1e5e70fcf4a223601db8f8973626cce1efd6bc28 (diff)
downloadvolse-hubzilla-ad58fe893db1335ac6a4f6ef45e7e8e32595042e.tar.gz
volse-hubzilla-ad58fe893db1335ac6a4f6ef45e7e8e32595042e.tar.bz2
volse-hubzilla-ad58fe893db1335ac6a4f6ef45e7e8e32595042e.zip
fix poco network
Diffstat (limited to 'mod/poco.php')
-rw-r--r--mod/poco.php5
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'],'@'));