mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update profile
This commit is contained in:
parent
d8d45385f6
commit
a94569077e
1 changed files with 3 additions and 3 deletions
|
@ -559,11 +559,11 @@ export default {
|
|||
})
|
||||
.then(res => {
|
||||
let data = res.data;
|
||||
this.timeline = data;
|
||||
let ids = data.map(status => status.id);
|
||||
this.min_id = Math.max(...ids);
|
||||
this.max_id = Math.min(...ids);
|
||||
this.modalStatus = _.first(res.data);
|
||||
this.timeline = data;
|
||||
this.ownerCheck();
|
||||
this.loading = false;
|
||||
}).catch(err => {
|
||||
|
@ -592,11 +592,11 @@ export default {
|
|||
}).then(res => {
|
||||
if (res.data.length && this.loading == false) {
|
||||
let data = res.data;
|
||||
this.timeline.push(...data);
|
||||
let ids = data.map(status => status.id);
|
||||
this.max_id = Math.min(...ids);
|
||||
this.loading = false;
|
||||
this.timeline.push(...data);
|
||||
$state.loaded();
|
||||
this.loading = false;
|
||||
} else {
|
||||
$state.complete();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue