refactor: retrieve closet in skin library

This commit is contained in:
Pig Fang 2018-07-12 08:56:44 +08:00
parent 0c7878f494
commit 7bd7deca37

View File

@ -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);
}
}