Switched to IDs

This commit is contained in:
Julian Prieber 2023-02-03 16:18:28 +01:00
parent af48b15a71
commit 85469283a6

View File

@ -673,7 +673,6 @@ class UserController extends Controller
public function delProfilePicture()
{
$user_id = Auth::user()->id;
$user_id = User::find($user_id)->littlelink_name; // remove when switching to IDs
$path = base_path('img/' . $user_id . '.png');
if (File::exists($path)) {