diff options
author | friendica <info@friendica.com> | 2014-04-06 18:40:37 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-04-06 18:40:37 -0700 |
commit | 6f555c50e110235d125645113a58d1a2fda2eee8 (patch) | |
tree | 821a929961e3f477445d6c4ae2e867f469158879 /mod | |
parent | b880982b614dc1397f2bbf1059dff0c04efe3c51 (diff) | |
download | volse-hubzilla-6f555c50e110235d125645113a58d1a2fda2eee8.tar.gz volse-hubzilla-6f555c50e110235d125645113a58d1a2fda2eee8.tar.bz2 volse-hubzilla-6f555c50e110235d125645113a58d1a2fda2eee8.zip |
a bit more work towards issue #395 - cleaning up some cases which were going to the url directly and which weren't going through chanview. Also worth noting - mentions in posts do not go through chanview. Perhaps it is time to kill chanview (except we then cannot implemented a "connected" or "connect" button since we don't have any control over the landing page). For the time being I'm just trying to trap as many of the "visit URL" links as possible and sending them to a common place. Then we can figure out how that common place should behave.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/connedit.php | 2 | ||||
-rw-r--r-- | mod/viewconnections.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/connedit.php b/mod/connedit.php index fde116b48..2719b7732 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -316,7 +316,7 @@ function connedit_content(&$a) { array( 'label' => t('View Profile'), - 'url' => $a->get_baseurl(true) . '/chanview/?f=&cid=' . $contact['abook_id'], + 'url' => chanlink_cid($contact['abook_id']), 'sel' => '', 'title' => sprintf( t('View %s\'s profile'), $contact['xchan_name']), ), diff --git a/mod/viewconnections.php b/mod/viewconnections.php index 4f6f81d82..84b976042 100644 --- a/mod/viewconnections.php +++ b/mod/viewconnections.php @@ -48,7 +48,7 @@ function viewconnections_content(&$a) { foreach($r as $rr) { - $url = zid($rr['xchan_url']); + $url = chanlink_url($rr['xchan_url']); if($url) { $contacts[] = array( 'id' => $rr['abook_id'], |