diff options
author | friendica <info@friendica.com> | 2014-08-17 21:34:52 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-17 21:34:52 -0700 |
commit | 3dbc3e263d7a3c6d0ccb5da9d9927a93f777300e (patch) | |
tree | 2fe3e3c1122825b4b494370179e7f868675a01b7 /include | |
parent | cb027232fffca1b70c1ae17c6e82aec14be30558 (diff) | |
download | volse-hubzilla-3dbc3e263d7a3c6d0ccb5da9d9927a93f777300e.tar.gz volse-hubzilla-3dbc3e263d7a3c6d0ccb5da9d9927a93f777300e.tar.bz2 volse-hubzilla-3dbc3e263d7a3c6d0ccb5da9d9927a93f777300e.zip |
add ability to follow somebody not already in your connections from "post actions" dropdown. bug: doesn't bring you back to this page.
Diffstat (limited to 'include')
-rw-r--r-- | include/conversation.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php index c0d0c1e7d..836bd1b24 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -902,6 +902,7 @@ function item_photo_menu($item){ $contact_url=""; $pm_url=""; $vsrc_link = ""; + $follow_url = ""; if(local_user()) { $ssl_state = true; @@ -923,6 +924,9 @@ function item_photo_menu($item){ if($a->contacts && array_key_exists($item['author_xchan'],$a->contacts)) $contact = $a->contacts[$item['author_xchan']]; + else + if(local_user() && $item['author']['xchan_addr']) + $follow_url = z_root() . '/follow/?f=&url=' . $item['author']['xchan_addr']; if($contact) { $poke_link = $a->get_baseurl($ssl_state) . '/poke/?f=&c=' . $contact['abook_id']; @@ -940,6 +944,7 @@ function item_photo_menu($item){ t("View Profile") => $profile_link, t("View Photos") => $photos_link, t("Matrix Activity") => $posts_link, + t("Follow") => $follow_url, t("Edit Contact") => $contact_url, t("Send PM") => $pm_url, t("Poke") => $poke_link |