Fix the fallback to discover behavior on the home feed (#2546)

zio/stable
Paul Frazee 2024-01-16 10:01:41 -08:00 committed by GitHub
parent d35be77a11
commit 8372c0c261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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
}