From 3dbc3e263d7a3c6d0ccb5da9d9927a93f777300e Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 17 Aug 2014 21:34:52 -0700 Subject: add ability to follow somebody not already in your connections from "post actions" dropdown. bug: doesn't bring you back to this page. --- include/conversation.php | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3