From e91c25c0d6cde42ce6dbceda3582c7aac52b09ee Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 17 Mar 2023 02:05:56 -0600 Subject: [PATCH] Update PortfolioSettings component, improve recent posts filtering by pf_type --- resources/assets/js/components/PortfolioSettings.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/PortfolioSettings.vue b/resources/assets/js/components/PortfolioSettings.vue index a60d42c3b..6b1fbde8a 100644 --- a/resources/assets/js/components/PortfolioSettings.vue +++ b/resources/assets/js/components/PortfolioSettings.vue @@ -455,10 +455,10 @@ }, 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 => { 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(() => {