diff options
author | Mario Vavti <mario@mariovavti.com> | 2020-08-22 22:44:00 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2020-08-22 22:44:00 +0200 |
commit | 170b2e4465951edff5019545045714aa660cad51 (patch) | |
tree | ccbbf720f8fac17aad1a87a39e3d7d9eac8403f4 | |
parent | 4e0fc81e5dfaad3c3ed47a02df4589f5b25a88be (diff) | |
download | volse-hubzilla-170b2e4465951edff5019545045714aa660cad51.tar.gz volse-hubzilla-170b2e4465951edff5019545045714aa660cad51.tar.bz2 volse-hubzilla-170b2e4465951edff5019545045714aa660cad51.zip |
only show poke link if poke app is installed
-rw-r--r-- | include/conversation.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php index 876e907e5..b43a6f47e 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1,5 +1,7 @@ <?php /** @file */ +use Zotlabs\Lib\Apps; + require_once('include/items.php'); @@ -1045,7 +1047,7 @@ function thread_author_menu($item, $mode = '') { } if($contact) { - $poke_link = z_root() . '/poke/?f=&c=' . $contact['abook_id']; + $poke_link = ((Apps::system_app_installed($local_channel, 'Poke')) ? z_root() . '/poke/?f=&c=' . $contact['abook_id'] : ''); if (! intval($contact['abook_self'])) $contact_url = z_root() . '/connedit/' . $contact['abook_id']; $posts_link = z_root() . '/network/?cid=' . $contact['abook_id']; |