Update AvatarController, remove deprecated thumb_path

This commit is contained in:
Daniel Supernault 2021-01-24 18:22:13 -07:00
parent 1e9958f521
commit 889c3d8758
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
5 changed files with 1 additions and 20 deletions

View file

@ -183,7 +183,6 @@ class BaseApiController extends Controller
$avatar = Avatar::whereProfileId($profile->id)->firstOrFail();
$opath = $avatar->media_path;
$avatar->media_path = "$public/$name";
$avatar->thumb_path = null;
$avatar->change_count = ++$avatar->change_count;
$avatar->last_processed_at = null;
$avatar->save();