]> git.r.bdr.sh - rbdr/forum/blobdiff - src/components/post/post.svelte
Add tests to second batch of components
[rbdr/forum] / src / components / post / post.svelte
index fd9e580f906696c68e8e67fe8166b0e43e784453..66901af69601edc06db88d08c35eaf1668bc76f1 100644 (file)
                        {timestampToISO(post.created_at)}
                </a>
        </time>
+  {#if post.topic}
   <span>
     ({$_('post.topic_location')} <a href="/t/{post.topic.id}">{post.topic.title}</a>.)
   </span>
+  {/if}
 </aside>
 <article
        class="e-content"