mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-25 15:38:45 +02:00
Switched to IDs
This commit is contained in:
parent
af48b15a71
commit
85469283a6
@ -673,7 +673,6 @@ class UserController extends Controller
|
|||||||
public function delProfilePicture()
|
public function delProfilePicture()
|
||||||
{
|
{
|
||||||
$user_id = Auth::user()->id;
|
$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');
|
$path = base_path('img/' . $user_id . '.png');
|
||||||
|
|
||||||
if (File::exists($path)) {
|
if (File::exists($path)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user