From 9c72b45f36dcdf141c0698c2e6219bf914827881 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 19 Jul 2012 21:27:22 -0700 Subject: [PATCH] and the main photo menu --- include/conversation.php | 5 ++++- mod/poke.php | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 44cd92c39..4a9142bb2 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -910,6 +910,7 @@ function item_photo_menu($item){ if(! count($a->contacts)) load_contact_links(local_user()); } + $poke_link=""; $contact_url=""; $pm_url=""; $status_link=""; @@ -939,6 +940,7 @@ function item_photo_menu($item){ } } if(($cid) && (! $item['self'])) { + $poke_link = $a->get_baseurl($ssl_state) . '/poke/?f=&c=' . $cid; $contact_url = $a->get_baseurl($ssl_state) . '/contacts/' . $cid; $posts_link = $a->get_baseurl($ssl_state) . '/network/?cid=' . $cid; @@ -961,6 +963,7 @@ function item_photo_menu($item){ t("Network Posts") => $posts_link, t("Edit Contact") => $contact_url, t("Send PM") => $pm_url, + t("Poke") => $poke_link ); @@ -972,7 +975,7 @@ function item_photo_menu($item){ $o = ""; foreach($menu as $k=>$v){ - if ($v!="") $o .= "
  • $k
  • \n"; + if ($v!="") $o .= "
  • $k
  • \n"; } return $o; }} diff --git a/mod/poke.php b/mod/poke.php index f4660e624..8fdbaa517 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -150,7 +150,8 @@ EOT; $shortlist = array(); foreach($verbs as $k => $v) - $shortlist[] = array($k,$v[1]); + if($v[1] !== 'NOTRANSLATION') + $shortlist[] = array($k,$v[1]); $tpl = get_markup_template('poke_content.tpl');