1
0
Fork 0
forked from mirror/pixelfed

Update ImportService

This commit is contained in:
Daniel Supernault 2023-06-26 05:39:16 -06:00
parent fe6123c820
commit 2f2e446c1f
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -98,7 +98,7 @@ class ImportService
return ImportPost::whereProfileId($profileId) return ImportPost::whereProfileId($profileId)
->get() ->get()
->filter(function($ip) { ->filter(function($ip) {
return StatusService::get($ip->status_id); return StatusService::get($ip->status_id) == null;
}) })
->map(function($ip) { ->map(function($ip) {
return collect($ip->media)->map(function($m) { return $m['uri']; }); return collect($ip->media)->map(function($m) { return $m['uri']; });