aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-20 09:14:46 +0000
committerMario <mario@mariovavti.com>2020-11-20 09:14:46 +0000
commit011de75706ddd407cadfde89eec891b17db17211 (patch)
tree64b97b6cbb24a6d4cc985dc6ebc79ba2199c5e41 /include
parent852e456d44d2bffeadd2a22a7d47bb9e2e7f125f (diff)
downloadvolse-hubzilla-011de75706ddd407cadfde89eec891b17db17211.tar.gz
volse-hubzilla-011de75706ddd407cadfde89eec891b17db17211.tar.bz2
volse-hubzilla-011de75706ddd407cadfde89eec891b17db17211.zip
returning the rendered html when posting a comment will make the following update (and its implication in mod pubstream) obsolete
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index e77404cff..6615b04c3 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -511,6 +511,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
$jsreload = '';
$preview = (($page_mode === 'preview') ? true : false);
+ $r_preview = (($page_mode === 'r_preview') ? true : false);
$previewing = (($preview) ? ' preview ' : '');
$preview_lbl = t('This is an unsaved preview');
@@ -873,11 +874,13 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
}
+
$item['pagedrop'] = $page_dropping;
- if($item['id'] == $item['parent']) {
+ if($item['id'] == $item['parent'] || $r_preview) {
$item_object = new Zotlabs\Lib\ThreadItem($item);
+
$conv->add_thread($item_object);
if(($page_mode === 'list') || ($page_mode === 'pager_list')) {
$item_object->set_template('conv_list.tpl');