mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-18 20:41:27 +00:00
Merge pull request #622 from pixelfed/frontend-ui-refactor
Update AdminReportController, flush thumbnail cache after setting ite…
This commit is contained in:
commit
7ebdb76f27
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\Admin;
|
||||||
|
|
||||||
|
use Cache;
|
||||||
use App\Report;
|
use App\Report;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
@ -47,6 +48,7 @@ trait AdminReportController
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'cw':
|
case 'cw':
|
||||||
|
Cache::forget('status:thumb:'.$item->id);
|
||||||
$item->is_nsfw = true;
|
$item->is_nsfw = true;
|
||||||
$item->save();
|
$item->save();
|
||||||
$report->nsfw = true;
|
$report->nsfw = true;
|
||||||
|
|
Loading…
Reference in a new issue