summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/api/posts_add.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/api/posts_add.php b/www/api/posts_add.php
index 441965c..73beee0 100644
--- a/www/api/posts_add.php
+++ b/www/api/posts_add.php
@@ -65,6 +65,10 @@ if (isset($_REQUEST['status'])) {
}
}
+if (isset($_REQUEST['shared']) && (trim($_REQUEST['shared']) == 'no')) {
+ $status = 2;
+}
+
// Error out if there's no address or description
if (is_null($url) || is_null($description)) {
$added = false;