mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-30 14:09:58 +08:00
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