Merge pull request #622 from pixelfed/frontend-ui-refactor

Update AdminReportController, flush thumbnail cache after setting ite…
This commit is contained in:
daniel 2018-12-04 20:12:36 -07:00 committed by GitHub
commit 7ebdb76f27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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