Update AdminReportController, flush thumbnail cache after setting item as NSFW

pull/622/head
Daniel Supernault 6 years ago
parent cfdb81c2bd
commit e926fbba35
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -2,6 +2,7 @@
namespace App\Http\Controllers\Admin;
use Cache;
use App\Report;
use Carbon\Carbon;
use Illuminate\Http\Request;
@ -47,6 +48,7 @@ trait AdminReportController
break;
case 'cw':
Cache::forget('status:thumb:'.$item->id);
$item->is_nsfw = true;
$item->save();
$report->nsfw = true;

Loading…
Cancel
Save