aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/ChangeLog2
-rw-r--r--www/api/posts_add.php4
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 3dbeaed..1626339 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -21,6 +21,8 @@ ChangeLog for SemantiScuttle
- Fix E_NOTICE when calling alltags.php without any parameter
- Implement request #2833793: Export to avahi config files
- we support zeroconf networking!
+- Fix bug #2936833: api fix: shared=no
+ Patch by fnorder@users.sourceforge.net
0.95.2 - 2010-01-16
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;