mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
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) {
|
protected function getCustomFeed($portfolio) {
|
||||||
if(!$portfolio->metadata['posts']) {
|
if(!isset($portfolio->metadata['posts']) || !$portfolio->metadata['posts']) {
|
||||||
return response()->json([], 400);
|
return response()->json([], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,9 @@
|
||||||
this.bootIntersectors()
|
this.bootIntersectors()
|
||||||
}, 500);
|
}, 500);
|
||||||
})
|
})
|
||||||
|
.catch(err => {
|
||||||
|
this.loading = false;
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
postUrl(res) {
|
postUrl(res) {
|
||||||
|
|
Loading…
Reference in a new issue