refactor: retrieve closet in skin library
This commit is contained in:
parent
0c7878f494
commit
7bd7deca37
|
|
@ -104,8 +104,9 @@ class SkinlibController extends Controller
|
|||
->get();
|
||||
|
||||
if (! $anonymous) {
|
||||
$closet = new Closet($this->user->uid);
|
||||
foreach ($textures as $item) {
|
||||
$item->liked = $this->user->getCloset()->has($item->tid);
|
||||
$item->liked = $closet->has($item->tid);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user