From f852a1f2288c8dc5be30e87b5143a674c0b96890 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sat, 29 Nov 2014 02:34:49 +0000 Subject: Issue #713 Arguably, we shouldn't allow poking yourself and stuff either but I like that, so... --- include/conversation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/conversation.php b/include/conversation.php index 6db9d3ce4..425a655f7 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -915,7 +915,8 @@ function item_photo_menu($item){ if($contact) { $poke_link = $a->get_baseurl($ssl_state) . '/poke/?f=&c=' . $contact['abook_id']; - $contact_url = $a->get_baseurl($ssl_state) . '/connedit/' . $contact['abook_id']; + if (!($contact['abook_flags'] & ABOOK_FLAG_SELF)) + $contact_url = $a->get_baseurl($ssl_state) . '/connedit/' . $contact['abook_id']; $posts_link = $a->get_baseurl($ssl_state) . '/network/?cid=' . $contact['abook_id']; $clean_url = normalise_link($item['author-link']); -- cgit v1.2.3