aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2020-08-22 22:44:00 +0200
committerMario Vavti <mario@mariovavti.com>2020-08-22 22:44:00 +0200
commit170b2e4465951edff5019545045714aa660cad51 (patch)
treeccbbf720f8fac17aad1a87a39e3d7d9eac8403f4
parent4e0fc81e5dfaad3c3ed47a02df4589f5b25a88be (diff)
downloadvolse-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.php4
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'];