···66 let { post }: { post: AnyPost } = $props();
77</script>
8899-{#if post instanceof BlockedPost}
99+{#if post instanceof Post}
1010+ <p class="back">
1111+ <i class="fa-solid fa-reply"></i>
1212+ <a href={linkToPostThread(post)}>See parent post (@{post.author.handle})</a>
1313+ </p>
1414+{:else if post instanceof BlockedPost}
1015 <div class="back">
1116 <BlockedPostView {post} context="parent" reason="Parent post blocked" />
1217 </div>
···1621 </p>
1722{:else}
1823 <p class="back">
1919- <i class="fa-solid fa-reply"></i>
2020- <a href={linkToPostThread(post)}>See parent post (@{post.author.handle})</a>
2424+ <i class="fa-solid fa-ban"></i> something went wrong, this shouldn't happen
2125 </p>
2226{/if}
+2-2
src/models/posts.js
···166166export class Post extends BasePost {
167167 /**
168168 * Post object which is the direct parent of this post.
169169- * @type {ATProtoRecord | undefined}
169169+ * @type {AnyPost | undefined}
170170 */
171171 parent;
172172173173 /**
174174 * Post object which is the root of the whole thread (as specified in the post record).
175175- * @type {ATProtoRecord | undefined}
175175+ * @type {AnyPost | undefined}
176176 */
177177 threadRoot;
178178