[PLUGIN][TreeNotes] Correct cache issues and iterate functionality

- Replies ordering now correct
- Replies count added
- Posting adds new replies to cache (when concerning replies cache is not empty) and increments replies count
- Configuration to specify number of in-tree replies shown added
- TreeNotes templates was moved from core to plugin
- Button to read more replies was added
This commit is contained in:
2022-02-27 00:42:59 +00:00
parent 2f539d176d
commit a9b34b75b6
9 changed files with 111 additions and 38 deletions

View File

@@ -39,7 +39,10 @@
{% for conversation in notes %}
{% block current_note %}
{% if conversation is instanceof('array') %}
{% set args = { 'type': 'vanilla_full', 'note': conversation['note'], 'replies': conversation['replies'] | default, 'extra': { 'depth': 0 } } %}
{% set args = {
'type': 'vanilla_full',
'conversation': conversation
} %}
{{ NoteFactory.constructor(args) }}
{# {% else %}
{% set args = { 'type': 'vanilla_full', 'note': conversation, 'extra': { 'depth': 0 } } %}