diff options
author | friendica <info@friendica.com> | 2012-03-16 15:19:38 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-16 15:19:38 -0700 |
commit | 949c6d47b5b9a3e796cdf6dff79d6d532f4a3159 (patch) | |
tree | 46a860365b0a383cc02ed9bf4f200964aff0240b | |
parent | 141ae076ad9fc6dfce1b25604f44faa54a4ad940 (diff) | |
download | volse-hubzilla-949c6d47b5b9a3e796cdf6dff79d6d532f4a3159.tar.gz volse-hubzilla-949c6d47b5b9a3e796cdf6dff79d6d532f4a3159.tar.bz2 volse-hubzilla-949c6d47b5b9a3e796cdf6dff79d6d532f4a3159.zip |
add "send pm" link to photo dropdown for Diaspora contacts
-rwxr-xr-x | include/conversation.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php index 88ecf502b..8ca484c9e 100755 --- a/include/conversation.php +++ b/include/conversation.php @@ -779,6 +779,17 @@ function item_photo_menu($item){ if(($cid) && (! $item['self'])) { $contact_url = $a->get_baseurl($ssl_state) . '/contacts/' . $cid; $posts_link = $a->get_baseurl($ssl_state) . '/network/?cid=' . $cid; + + $clean_url = normalise_link($item['author-link']); + + if((local_user()) && (local_user() == $item['uid'])) { + if(isset($a->contacts) && x($a->contacts,$clean_url)) { + if($a->contacts[$clean_url]['network'] === NETWORK_DIASPORA) { + $pm_url = $a->get_baseurl($ssl_state) . '/message/new/' . $cid; + } + } + } + } $menu = Array( |