From 8ee5f1c4860f2b5430fc3cebbc507d7cb9eaedc5 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Fri, 5 Jul 2024 12:58:12 +0300 Subject: [PATCH] fix comment upload --- app/Controllers/Api/Images/Upload.php | 2 +- views/components/Navbar.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Api/Images/Upload.php b/app/Controllers/Api/Images/Upload.php index b57ea88..0b3615b 100644 --- a/app/Controllers/Api/Images/Upload.php +++ b/app/Controllers/Api/Images/Upload.php @@ -45,7 +45,7 @@ class Upload array( 'type' => 'none', 'copyright' => $_POST['license'], - 'comment' => $_POST['comment'], + 'comment' => $_POST['descr'], ) ); self::$photourl = $upload->getSrc(); diff --git a/views/components/Navbar.php b/views/components/Navbar.php index 612e194..58542e0 100644 --- a/views/components/Navbar.php +++ b/views/components/Navbar.php @@ -64,7 +64,7 @@ $user = new \App\Models\User(Auth::userid());