+6
-4
src/components/TimelineView.svelte
+6
-4
src/components/TimelineView.svelte
···
74
74
{/snippet}
75
75
76
76
{#snippet threadsView()}
77
-
{#each threads as thread (thread.rootUri)}
77
+
{#each threads as thread, i (thread.rootUri)}
78
78
<div class="flex w-full shrink-0 {reverseChronological ? 'flex-col' : 'flex-col-reverse'}">
79
79
{#if thread.branchParentPost}
80
80
{@render replyPost(thread.branchParentPost)}
···
117
117
{/if}
118
118
{/each}
119
119
</div>
120
-
<div
121
-
class="mx-8 mt-3 mb-4 h-px bg-linear-to-r from-(--nucleus-accent)/30 to-(--nucleus-accent2)/30"
122
-
></div>
120
+
{#if i < threads.length - 1}
121
+
<div
122
+
class="mx-8 mt-3 mb-4 h-px bg-linear-to-r from-(--nucleus-accent)/30 to-(--nucleus-accent2)/30"
123
+
></div>
124
+
{/if}
123
125
{/each}
124
126
{/snippet}
125
127
+1
src/lib/thread.ts
+1
src/lib/thread.ts
···
168
168
169
169
export const filterThreads = (threads: Thread[], accounts: Account[], opts: FilterOptions) =>
170
170
threads.filter((thread) => {
171
+
if (thread.posts.length === 0) return false;
171
172
if (!opts.viewOwnPosts) return hasNonOwnPost(thread.posts, accounts);
172
173
return true;
173
174
});