Fix the fallback to discover behavior on the home feed (#2546)
parent
d35be77a11
commit
8372c0c261
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue