summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 8ea47b235..e88da1687 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -36,13 +36,6 @@ class NewnoticeAction extends Action {
function save_new_notice() {
- # CSRF protection - token set in common_notice_form()
- $token = $this->trimmed('token');
- if (!$token || $token != common_session_token()) {
- $this->client_error(_('There was a problem with your session token. Try again, please.'));
- return;
- }
-
$user = common_current_user();
assert($user); # XXX: maybe an error instead...
$content = $this->trimmed('status_textarea');
@@ -50,8 +43,8 @@ class NewnoticeAction extends Action {
if (!$content) {
$this->show_form(_('No content!'));
return;
- } else if (mb_strlen($content) > 140) {
-
+// } else if (mb_strlen($content) > 140) {
+ } else {
$content = common_shorten_links($content);
if (mb_strlen($content) > 140) {