diff options
author | Mario <mario@mariovavti.com> | 2020-11-20 09:14:46 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-20 09:14:46 +0000 |
commit | 011de75706ddd407cadfde89eec891b17db17211 (patch) | |
tree | 64b97b6cbb24a6d4cc985dc6ebc79ba2199c5e41 /include/conversation.php | |
parent | 852e456d44d2bffeadd2a22a7d47bb9e2e7f125f (diff) | |
download | volse-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/conversation.php')
-rw-r--r-- | include/conversation.php | 5 |
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'); |