aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/thewire/actions/add.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/thewire/actions/add.php b/mod/thewire/actions/add.php
index 77f877c3c..4226395b8 100644
--- a/mod/thewire/actions/add.php
+++ b/mod/thewire/actions/add.php
@@ -16,7 +16,9 @@
// Get input data
$body = get_input('note');
$tags = get_input('thewiretags');
- $access_id = get_default_access();
+ $access_id = (int)get_default_access();
+ if ($access_id == ACCESS_PRIVATE)
+ $access_id = ACCESS_LOGGED_IN; // Private wire messages are pointless
$location = get_input('location');
$method = get_input('method');
$parent = (int)get_input('parent', 0);