aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-04 03:05:43 -0700
committerFriendika <info@friendika.com>2011-04-04 03:05:43 -0700
commit4922fddff9ead51617d540347b92ac830e23c80f (patch)
tree544dc0fa4346a78817764e763d6a4fbea06a35b5
parent933de1769cd7e5a99f2f7ba2d04b607c1ac070ac (diff)
parent5a62d022a2ab7039fb7529d37e81447116abcbea (diff)
downloadvolse-hubzilla-4922fddff9ead51617d540347b92ac830e23c80f.tar.gz
volse-hubzilla-4922fddff9ead51617d540347b92ac830e23c80f.tar.bz2
volse-hubzilla-4922fddff9ead51617d540347b92ac830e23c80f.zip
Merge branch 'fabrixxm-iconpopup'
-rw-r--r--boot.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/boot.php b/boot.php
index 708d90901..3ede1cbc8 100644
--- a/boot.php
+++ b/boot.php
@@ -2694,8 +2694,10 @@ function item_photo_menu($item){
$status_link = $redirect_url."?url=status";
$profile_link = $redirect_url."?url=profile";
$photos_link = $redirect_url."?url=photos";
- $pm_url = $a->get_baseurl() . '/message/new/' . $item['cid'] ;
- $contact_url = $item['self']?"":$a->get_baseurl() . '/contacts/' . $item['cid'] ;
+ if (local_user()){
+ $pm_url = $a->get_baseurl() . '/message/new/' . $item['cid'];
+ $contact_url = $item['self']?"":$a->get_baseurl() . '/contacts/' . $item['cid'];
+ }
}
elseif(isset($a->authors[$item['author-link']])) {
$redirect_url = $a->get_baseurl() . '/redir/' . $a->authors[$item['author-link']]['id'];
@@ -2703,10 +2705,12 @@ function item_photo_menu($item){
$profile_link = $redirect_url."?url=profile";
$photos_link = $redirect_url."?url=photos";
- if ($a->authors[$item['author-link']]['network']==='dfrn'){
- $pm_url = $a->get_baseurl() . '/message/new/' . $a->authors[$item['author-link']]['id'];
+ if (local_user()){
+ if ($a->authors[$item['author-link']]['network']==='dfrn'){
+ $pm_url = $a->get_baseurl() . '/message/new/' . $a->authors[$item['author-link']]['id'];
+ }
+ $contact_url = $item['self']?"":$a->get_baseurl() . '/contacts/' . $a->authors[$item['author-link']]['id'] ;
}
- $contact_url = $item['self']?"":$a->get_baseurl() . '/contacts/' . $a->authors[$item['author-link']]['id'] ;
}
}