aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-04 03:31:47 -0700
committerFriendika <info@friendika.com>2011-04-04 03:31:47 -0700
commit9f804b936a23c6c28307968c755eb920c26048cc (patch)
tree46c278f2f5995c5288bc4823de52e934e05e17fd
parent4922fddff9ead51617d540347b92ac830e23c80f (diff)
downloadvolse-hubzilla-9f804b936a23c6c28307968c755eb920c26048cc.tar.gz
volse-hubzilla-9f804b936a23c6c28307968c755eb920c26048cc.tar.bz2
volse-hubzilla-9f804b936a23c6c28307968c755eb920c26048cc.zip
remote profile photo menu fix
-rw-r--r--boot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 3ede1cbc8..f1db7a349 100644
--- a/boot.php
+++ b/boot.php
@@ -2694,7 +2694,7 @@ function item_photo_menu($item){
$status_link = $redirect_url."?url=status";
$profile_link = $redirect_url."?url=profile";
$photos_link = $redirect_url."?url=photos";
- if (local_user()){
+ if (local_user() && (! link_compare($_SESSION['my_url'],$item['author-link']))) {
$pm_url = $a->get_baseurl() . '/message/new/' . $item['cid'];
$contact_url = $item['self']?"":$a->get_baseurl() . '/contacts/' . $item['cid'];
}
@@ -2705,7 +2705,7 @@ function item_photo_menu($item){
$profile_link = $redirect_url."?url=profile";
$photos_link = $redirect_url."?url=photos";
- if (local_user()){
+ if (local_user() && (! link_compare($_SESSION['my_url'],$a->authors[$item['author-link']]['url']))) {
if ($a->authors[$item['author-link']]['network']==='dfrn'){
$pm_url = $a->get_baseurl() . '/message/new/' . $a->authors[$item['author-link']]['id'];
}