summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index a98829cd8..bf5fd5bcc 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -38,9 +38,10 @@ class NewnoticeAction extends Action {
$user = common_current_user();
assert($user); # XXX: maybe an error instead...
- $notice = DB_DataObject::factory('notice');
+ $notice = new Notice();
assert($notice);
$notice->profile_id = $user->id; # user id *is* profile id
+ $notice->is_local = 1;
$notice->created = DB_DataObject_Cast::dateTime();
# Default theme uses 'content' for something else
$notice->content = $this->trimmed('status_textarea');