diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-01-16 10:01:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 10:01:41 -0800 |
commit | 8372c0c261143e9a4cb5c244f15c966f865e282d (patch) | |
tree | 12cb90cda052b720a50df2bffb41f71da985dcd9 | |
parent | d35be77a116772eb13c1c1165b0ed4628f0ac657 (diff) | |
download | voidsky-8372c0c261143e9a4cb5c244f15c966f865e282d.tar.zst |
Fix the fallback to discover behavior on the home feed (#2546)
-rw-r--r-- | src/lib/api/feed/home.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/api/feed/home.ts b/src/lib/api/feed/home.ts index 91634927a..436a66d07 100644 --- a/src/lib/api/feed/home.ts +++ b/src/lib/api/feed/home.ts @@ -68,7 +68,8 @@ export class HomeFeedAPI implements FeedAPI { const res = await this.following.fetch({cursor, limit}) returnCursor = res.cursor posts = posts.concat(res.feed) - if (res.feed.length === 0 || !cursor) { + if (!returnCursor) { + cursor = '' posts.push(FALLBACK_MARKER_POST) this.usingDiscover = true } |