Merge branch 'iconpopup' of https://github.com/fabrixxm/friendika into fabrixxm-iconpopup

This commit is contained in:
Friendika 2011-04-04 03:05:30 -07:00
commit 5a62d022a2

View file

@ -2694,19 +2694,23 @@ 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";
if (local_user()){
$pm_url = $a->get_baseurl() . '/message/new/' . $item['cid']; $pm_url = $a->get_baseurl() . '/message/new/' . $item['cid'];
$contact_url = $item['self']?"":$a->get_baseurl() . '/contacts/' . $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'];
$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";
if (local_user()){
if ($a->authors[$item['author-link']]['network']==='dfrn'){ if ($a->authors[$item['author-link']]['network']==='dfrn'){
$pm_url = $a->get_baseurl() . '/message/new/' . $a->authors[$item['author-link']]['id']; $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'] ;
}
} }
} }