From 059f6ab1ea87fef40b0b36ad2a8b5c897a8f69cd Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 2 Sep 2023 23:09:33 +0300 Subject: [PATCH] make visibility option triggered once because of distributed model means that data already shared to website, rss feeds and other nodes #1 --- src/public/edit.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/public/edit.php b/src/public/edit.php index 2f8b962..186154e 100644 --- a/src/public/edit.php +++ b/src/public/edit.php @@ -244,10 +244,14 @@ else { } // Social - $db->updateMagnetPublic($magnet->magnetId, isset($_POST['public']) ? true : false, time()); $db->updateMagnetComments($magnet->magnetId, isset($_POST['comments']) ? true : false, time()); $db->updateMagnetSensitive($magnet->magnetId, isset($_POST['sensitive']) ? true : false, time()); + if (isset($_POST['public'])) // could be enabled once only because of distributed database model #1 + { + $db->updateMagnetPublic($magnet->magnetId, true, time()); + } + // Display Name if (isset($_POST['dn'])) { @@ -640,12 +644,12 @@ else {