Fix the fallback to discover behavior on the home feed (#2546)
This commit is contained in:
@@ -68,7 +68,8 @@ export class HomeFeedAPI implements FeedAPI {
|
|||||||
const res = await this.following.fetch({cursor, limit})
|
const res = await this.following.fetch({cursor, limit})
|
||||||
returnCursor = res.cursor
|
returnCursor = res.cursor
|
||||||
posts = posts.concat(res.feed)
|
posts = posts.concat(res.feed)
|
||||||
if (res.feed.length === 0 || !cursor) {
|
if (!returnCursor) {
|
||||||
|
cursor = ''
|
||||||
posts.push(FALLBACK_MARKER_POST)
|
posts.push(FALLBACK_MARKER_POST)
|
||||||
this.usingDiscover = true
|
this.usingDiscover = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user