aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-06 19:43:03 -0800
committerFriendika <info@friendika.com>2011-03-06 19:43:03 -0800
commit26c4054652ac7aee3c4eb42e5d3721edf9bb0334 (patch)
tree4aeca57a08d5d70f9a3093f64e665b2e058c4282
parent7f1f18675cb545ff92f9a2dedf83ce9a8f0964b2 (diff)
downloadvolse-hubzilla-26c4054652ac7aee3c4eb42e5d3721edf9bb0334.tar.gz
volse-hubzilla-26c4054652ac7aee3c4eb42e5d3721edf9bb0334.tar.bz2
volse-hubzilla-26c4054652ac7aee3c4eb42e5d3721edf9bb0334.zip
more improvements on sparkle links bug #13
-rw-r--r--mod/network.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/mod/network.php b/mod/network.php
index 92dc98608..9ab11f952 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -233,7 +233,7 @@ function network_content(&$a, $update = 0) {
$redirect_url = $a->get_baseurl() . '/redir/' . $item['cid'] ;
- if(strlen($item['author-link']) && link_compare($item['author-link'],$item['url'])) {
+ if(strlen($item['author-link'])) {
if(($item['network'] === 'dfrn') && (! $item['self'])) {
$profile_link = $redirect_url;
$sparkle = ' sparkle';
@@ -242,7 +242,6 @@ function network_content(&$a, $update = 0) {
$profile_link = $a->get_baseurl() . '/redir/' . $author_contacts[$item['author-link']];
$sparkle = ' sparkle';
}
-
}
$location = (($item['location']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : '');
@@ -380,7 +379,8 @@ function network_content(&$a, $update = 0) {
$profile_name = (((strlen($item['author-name'])) && $diff_author) ? $item['author-name'] : $item['name']);
$profile_avatar = (((strlen($item['author-avatar'])) && $diff_author) ? $item['author-avatar'] : $thumb);
- if(strlen($item['author-link']) && link_compare($item['author-link'],$item['url'])) {
+ if(strlen($item['author-link'])) {
+ $profile_link = $item['author-link'];
if(($item['network'] === 'dfrn') && (! $item['self'])) {
$profile_link = $redirect_url;
$sparkle = ' sparkle';
@@ -389,8 +389,6 @@ function network_content(&$a, $update = 0) {
$profile_link = $a->get_baseurl() . '/redir/' . $author_contacts[$item['author-link']];
$sparkle = ' sparkle';
}
- else
- $profile_link = $item['author-link'];
}
else
$profile_link = $item['url'];