Skip to content

Commit 61b8f16

Browse files
authored
Merge pull request smartapant#2 from WoH/subreddit
PostsPage: LoadMore() in subreddits
2 parents fdf0427 + 68803e3 commit 61b8f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/posts/posts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class PostsPage {
6767
if (!lastPost) {
6868
infiniteScroll.complete()
6969
} else {
70-
this.redditApi.fetchNext(lastPost.name).subscribe((posts) => {
70+
this.redditApi.fetchNext(lastPost.name, this.subreddit).subscribe((posts) => {
7171
this.posts = this.posts.concat(posts);
7272
infiniteScroll.complete();
7373
})

0 commit comments

Comments
 (0)