From ade987db47ef43bf5363df85899a023f7649f871 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 4 Jan 2018 15:46:56 +0000 Subject: [PATCH] Updates for community pages do work now --- include/conversation.php | 10 +++++----- mod/community.php | 4 +++- mod/update_community.php | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index d6b6bd8eee..97630a65fb 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -578,11 +578,11 @@ function conversation(App $a, $items, $mode, $update, $preview = false) { $items = community_add_items($items); } $profile_owner = 0; -// Currently deactivated. Will be activated when we can comment on the community page -// if (!$update) { -// $live_update_div = '
' . "\r\n" -// . "\r\n"; -// } + if (!$update) { + $live_update_div = '
' . "\r\n" + . "\r\n"; + } } elseif ($mode === 'search') { $live_update_div = '' . "\r\n"; } diff --git a/mod/community.php b/mod/community.php index 00c4ada4e2..a75a3cf7dd 100644 --- a/mod/community.php +++ b/mod/community.php @@ -139,7 +139,9 @@ function community_content(App $a, $update = 0) { $o .= conversation($a, $s, 'community', $update); - $o .= alt_pager($a, count($r)); + if (!$update) { + $o .= alt_pager($a, count($r)); + } $t = get_markup_template("community.tpl"); return replace_macros($t, array( diff --git a/mod/update_community.php b/mod/update_community.php index c0e4c33238..1e90053267 100644 --- a/mod/update_community.php +++ b/mod/update_community.php @@ -8,12 +8,12 @@ use Friendica\Core\PConfig; require_once("mod/community.php"); function update_community_content(App $a) { - header("Content-type: text/html"); echo "\r\n"; echo "
"; $text = community_content($a, true); + $pattern = "/]*) src=\"([^\"]*)\"/"; $replace = ""; echo "\r\n"; killme(); -} \ No newline at end of file +} -- 2.39.5