mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update PortfolioSettings component, improve recent posts filtering by pf_type
This commit is contained in:
parent
a74013e520
commit
e91c25c0d6
1 changed files with 2 additions and 2 deletions
|
@ -455,10 +455,10 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
loadRecentPosts() {
|
loadRecentPosts() {
|
||||||
axios.get('/api/v1/accounts/' + this.user.id + '/statuses?only_media=1&media_types=photo&limit=100')
|
axios.get('/api/v1/accounts/' + this.user.id + '/statuses?only_media=1&media_types=photo&limit=100&_pe=1')
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if(res.data.length) {
|
if(res.data.length) {
|
||||||
this.recentPosts = res.data.filter(p => p.visibility === "public");
|
this.recentPosts = res.data.filter(p => ['photo', 'photo:album'].includes(p.pf_type) && p.visibility === "public");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
Loading…
Reference in a new issue