From 5ad6eeccdf7d1d260392031c6d4fc0e5308cc6b9 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sat, 29 Jun 2019 16:34:06 -0700 Subject: add opengraph meta info to channel page --- Zotlabs/Module/Channel.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Zotlabs/Module/Channel.php') diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index afd82ed2f..b1639b213 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -111,6 +111,17 @@ class Channel extends Controller { // we start loading content profile_load($which,$profile); + + App::$page['htmlhead'] .= '' . "\r\n"; + App::$page['htmlhead'] .= '' . "\r\n"; + + if(App::$profile['about'] && perm_is_allowed($channel['channel_id'],get_observer_hash(),'view_profile')) { + App::$page['htmlhead'] .= '' . "\r\n"; + } + else { + App::$page['htmlhead'] .= '' . "\r\n"; + } + } function get($update = 0, $load = false) { -- cgit v1.2.3