From 5d9e930d309468bca04eb6ad969d9f070edf4f6c Mon Sep 17 00:00:00 2001
From: themohooks <81331307+themohooks@users.noreply.github.com>
Date: Sat, 12 Oct 2024 13:40:58 +0300
Subject: [PATCH] disable exif option
---
app/Controllers/Api/Images/Upload.php | 4 +
static/css/photo.css | 2 +-
views/pages/Photo.php | 128 +++++++++++++++++++++++---
views/pages/Profile/UploadPhoto.php | 13 +++
4 files changed, 131 insertions(+), 16 deletions(-)
diff --git a/app/Controllers/Api/Images/Upload.php b/app/Controllers/Api/Images/Upload.php
index c343eaa..c6b1eef 100644
--- a/app/Controllers/Api/Images/Upload.php
+++ b/app/Controllers/Api/Images/Upload.php
@@ -20,6 +20,7 @@ class Upload
static $rating = 'allowed';
static $showtop = 'allowed';
static $subsnotify = 'allowed';
+ static $exif = 'exif';
public static function create($postbody, $content, $exif)
{
@@ -146,6 +147,9 @@ class Upload
if ((int)$_POST['disablesubsnotify'] === 1) {
self::$subsnotify = 'disabled';
}
+ if ((int)$_POST['disableexif'] === 1) {
+ self::$exif = 'disabled';
+ }
if ($upload->getType() !== null) {
$content = Json::return(
array(
diff --git a/static/css/photo.css b/static/css/photo.css
index ab3451e..c2d23c3 100644
--- a/static/css/photo.css
+++ b/static/css/photo.css
@@ -1,7 +1,7 @@
#photobar { margin:0 -20px; position:relative; background-color:#333; }
#underphoto_frame { display:inline-block; }
-#ph { max-width:70%; cursor:zoom-in; }
+#ph { max-width:50%; cursor:zoom-in; }
#ph.v-zoom { max-height:calc(100vh - 30px); }
#ph.zoomed { max-width:none; max-height:none; cursor:zoom-out; }
#ph.nozoom { cursor:default; }
diff --git a/views/pages/Photo.php b/views/pages/Photo.php
index 185bb00..cfa4f42 100644
--- a/views/pages/Photo.php
+++ b/views/pages/Photo.php
@@ -118,7 +118,7 @@ if ($photo->i('id') !== null) {
-
+
i('priority') === 1) { ?>
@@ -304,7 +304,7 @@ if ($photo->i('id') !== null) {