1
0
Fork 0
forked from mirror/pixelfed

Update PortfolioController, fix empty post ids condition

This commit is contained in:
Daniel Supernault 2023-03-17 01:54:01 -06:00
parent d1358b0664
commit 7f06f5f555
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 4 additions and 1 deletions

View file

@ -172,7 +172,7 @@ class PortfolioController extends Controller
}
protected function getCustomFeed($portfolio) {
if(!$portfolio->metadata['posts']) {
if(!isset($portfolio->metadata['posts']) || !$portfolio->metadata['posts']) {
return response()->json([], 400);
}

View file

@ -216,6 +216,9 @@
this.bootIntersectors()
}, 500);
})
.catch(err => {
this.loading = false;
})
},
postUrl(res) {