about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/state/models/feeds/posts.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/models/feeds/posts.ts b/src/state/models/feeds/posts.ts
index d33dce192..cbff707d0 100644
--- a/src/state/models/feeds/posts.ts
+++ b/src/state/models/feeds/posts.ts
@@ -485,6 +485,9 @@ export class PostsFeedModel {
    * Used by the composer to add their new posts
    */
   async addPostToTop(uri: string) {
+    if (!this.slices.length) {
+      return this.refresh()
+    }
     try {
       const res = await this.rootStore.agent.app.bsky.feed.getPosts({
         uris: [uri],