aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-02-23 10:36:00 +0100
committerMario Vavti <mario@mariovavti.com>2017-02-23 10:36:00 +0100
commit41c67fa345aeddc7f44378e37c4534701540b691 (patch)
treed645db191ae7a568cd65b2652f8381a283671e6c
parentc75852455b4c4832ab91e5448c330966f1b60f2a (diff)
downloadvolse-hubzilla-41c67fa345aeddc7f44378e37c4534701540b691.tar.gz
volse-hubzilla-41c67fa345aeddc7f44378e37c4534701540b691.tar.bz2
volse-hubzilla-41c67fa345aeddc7f44378e37c4534701540b691.zip
more places to use chanlink_hash() instead of chanlink_url() for profile_link
-rw-r--r--Zotlabs/Module/Connections.php2
-rw-r--r--Zotlabs/Module/Directory.php2
-rw-r--r--Zotlabs/Module/Viewconnections.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Connections.php b/Zotlabs/Module/Connections.php
index 950be660d..e8a92e8b7 100644
--- a/Zotlabs/Module/Connections.php
+++ b/Zotlabs/Module/Connections.php
@@ -269,7 +269,7 @@ class Connections extends \Zotlabs\Web\Controller {
'link' => z_root() . '/connedit/' . $rr['abook_id'],
'deletelink' => z_root() . '/connedit/' . intval($rr['abook_id']) . '/drop',
'delete' => t('Delete'),
- 'url' => chanlink_url($rr['xchan_url']),
+ 'url' => chanlink_hash($rr['xchan_hash']),
'webbie_label' => t('Channel address'),
'webbie' => $rr['xchan_addr'],
'network_label' => t('Network'),
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index 59ae88857..583154526 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -206,7 +206,7 @@ class Directory extends \Zotlabs\Web\Controller {
foreach($j['results'] as $rr) {
- $profile_link = chanlink_url($rr['url']);
+ $profile_link = chanlink_hash($rr['hash']);
$pdesc = (($rr['description']) ? $rr['description'] . '<br />' : '');
$connect_link = ((local_channel()) ? z_root() . '/follow?f=&url=' . urlencode($rr['address']) : '');
diff --git a/Zotlabs/Module/Viewconnections.php b/Zotlabs/Module/Viewconnections.php
index 4364d482a..1f9c03751 100644
--- a/Zotlabs/Module/Viewconnections.php
+++ b/Zotlabs/Module/Viewconnections.php
@@ -70,7 +70,7 @@ class Viewconnections extends \Zotlabs\Web\Controller {
foreach($r as $rr) {
- $url = chanlink_url($rr['xchan_url']);
+ $url = chanlink_hash($rr['xchan_hash']);
if($url) {
$contacts[] = array(
'id' => $rr['abook_id'],