diff --git a/app/Http/Controllers/SkinlibController.php b/app/Http/Controllers/SkinlibController.php index 5091f75a..b88c7449 100644 --- a/app/Http/Controllers/SkinlibController.php +++ b/app/Http/Controllers/SkinlibController.php @@ -288,8 +288,9 @@ class SkinlibController extends Controller @$users->get($t->uploader)->setScore($score_diff, 'plus'); - $t->public = !$t->public; + $t->public = ! $t->public; $t->save(); + return json([ 'errno' => 0, 'msg' => trans('skinlib.privacy.success', ['privacy' => (! $t->public ? trans('general.private') : trans('general.public'))]),