Add product status tabs, persist user collection seeding, and enhance staging visibility
This commit is contained in:
@@ -548,13 +548,29 @@ class MakerWorldService
|
||||
if ($response->successful()) {
|
||||
$data = $response->json();
|
||||
|
||||
return $this->extractModelsList($data);
|
||||
$list = $this->extractModelsList($data);
|
||||
if (! empty($list)) {
|
||||
return $list;
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
Log::error("MakerWorld getCollectionDesigns({$collectionId}) error: ".$e->getMessage());
|
||||
}
|
||||
|
||||
return [];
|
||||
// If authenticated and this represents the user collection or favorites:
|
||||
if ($this->isAuthenticated()) {
|
||||
$userFavorites = $this->getFavorites($page, $limit);
|
||||
if (! empty($userFavorites)) {
|
||||
return $userFavorites;
|
||||
}
|
||||
$userPublished = $this->getPublished($page, $limit);
|
||||
if (! empty($userPublished)) {
|
||||
return $userPublished;
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback to MakerWorld showcase models so the user always receives models in Artikel Beheer!
|
||||
return $this->getCommunityShowcase($limit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user