forked from mirror/pixelfed
Update PortfolioController, fix empty post ids condition
This commit is contained in:
parent
d1358b0664
commit
7f06f5f555
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -216,6 +216,9 @@
|
|||
this.bootIntersectors()
|
||||
}, 500);
|
||||
})
|
||||
.catch(err => {
|
||||
this.loading = false;
|
||||
})
|
||||
},
|
||||
|
||||
postUrl(res) {
|
||||
|
|
Loading…
Reference in a new issue