{#if profile.current?.jwt} {#if !commenting} c.community.id) .includes(post.community.id) )} onclick={() => (commenting = true)} > {$t('routes.post.addComment')} {#snippet action()} {$t('filter.sort.hot')} {$t('filter.sort.top.label')} {$t('filter.sort.new')} {$t('filter.sort.old')} {$t('filter.sort.controversial')} {/snippet} {:else} { tree.unshift({ children: [], depth: 1, expanded: true, comment_view: comment.comment_view, }) }} onfocus={() => (commenting = true)} tools={commenting} preview={commenting} placeholder={commenting ? undefined : $t('routes.post.addComment')} rows={commenting ? 7 : 1} oncancel={() => (commenting = false)} /> {/if} {/if} {#if commenting || !profile.current.jwt} {$t('filter.sort.hot')} {$t('filter.sort.top.label')} {$t('filter.sort.new')} {$t('filter.sort.old')} {$t('filter.sort.controversial')} {/if} {#if virtualize} {:else} {/if}