show "edit contact" and "sent PM" only to local user
This commit is contained in:
parent
890753e5b5
commit
7bfd0e2c48
1 changed files with 9 additions and 5 deletions
14
boot.php
14
boot.php
|
@ -2694,8 +2694,10 @@ function item_photo_menu($item){
|
||||||
$status_link = $redirect_url."?url=status";
|
$status_link = $redirect_url."?url=status";
|
||||||
$profile_link = $redirect_url."?url=profile";
|
$profile_link = $redirect_url."?url=profile";
|
||||||
$photos_link = $redirect_url."?url=photos";
|
$photos_link = $redirect_url."?url=photos";
|
||||||
$pm_url = $a->get_baseurl() . '/message/new/' . $item['cid'] ;
|
if (local_user()){
|
||||||
$contact_url = $item['self']?"":$a->get_baseurl() . '/contacts/' . $item['cid'] ;
|
$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']])) {
|
elseif(isset($a->authors[$item['author-link']])) {
|
||||||
$redirect_url = $a->get_baseurl() . '/redir/' . $a->authors[$item['author-link']]['id'];
|
$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";
|
$profile_link = $redirect_url."?url=profile";
|
||||||
$photos_link = $redirect_url."?url=photos";
|
$photos_link = $redirect_url."?url=photos";
|
||||||
|
|
||||||
if ($a->authors[$item['author-link']]['network']==='dfrn'){
|
if (local_user()){
|
||||||
$pm_url = $a->get_baseurl() . '/message/new/' . $a->authors[$item['author-link']]['id'];
|
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'] ;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue