aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-19 17:47:26 +0000
committerMario <mario@mariovavti.com>2021-05-19 17:47:26 +0000
commit8fe00d428d830fd4cf84473c0f441bf73f646eab (patch)
treea223c8a0768a353ddbadbbb9f7d09266c98aa079 /Zotlabs
parent9a5c1aa02f49d695e59ae771765d4e0f8744577a (diff)
downloadvolse-hubzilla-8fe00d428d830fd4cf84473c0f441bf73f646eab.tar.gz
volse-hubzilla-8fe00d428d830fd4cf84473c0f441bf73f646eab.tar.bz2
volse-hubzilla-8fe00d428d830fd4cf84473c0f441bf73f646eab.zip
bring back the channel_protocols hook
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Libzot.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index a19c8e544..c7d001d21 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -2924,7 +2924,19 @@ class Libzot {
];
$ret['channel_role'] = get_pconfig($e['channel_id'], 'system', 'permissions_role', 'custom');
- $ret['protocols'] = ['zot6', 'zot'];
+
+ $hookinfo = [
+ 'channel_id' => $id,
+ 'protocols' => ['zot6', 'zot']
+ ];
+ /**
+ * @hooks channel_protocols
+ * * \e int \b channel_id
+ * * \e array \b protocols
+ */
+ call_hooks('channel_protocols', $hookinfo);
+
+ $ret['protocols'] = $hookinfo['protocols'];
$ret['searchable'] = $searchable;
$ret['adult_content'] = $adult_channel;
$ret['public_forum'] = $public_forum;