|
@@ -44,7 +44,7 @@ export class ProfilePage {
|
|
|
doRefresh(refresher) {
|
|
|
this.twitter.fetchUserTimeline(this.userId)
|
|
|
.then(res => {
|
|
|
- this.tweets = res.data;
|
|
|
+ this.tweets = res;
|
|
|
refresher.complete();
|
|
|
})
|
|
|
}
|
|
@@ -52,7 +52,7 @@ export class ProfilePage {
|
|
|
loadMore(infiniteScroll: InfiniteScroll) {
|
|
|
this.twitter.fetchUserTimelineSince(this.userId, this.tweets[this.tweets.length - 1].id)
|
|
|
.then(res => {
|
|
|
- this.tweets = this.tweets.concat(res.data);
|
|
|
+ this.tweets = this.tweets.concat(res);
|
|
|
infiniteScroll.complete();
|
|
|
})
|
|
|
}
|