summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-09-29 17:25:52 -0400
committerEvan Prodromou <evan@status.net>2009-09-29 17:25:52 -0400
commit89ac81c34464b2fc4f54b643d0d95d12bac765ab (patch)
tree4e3277cb5ad9d93a61262f004a82efc14eaf7d30 /actions
parent0a57d1ccee1af8570d4c83934d9ab99fa1a1dc37 (diff)
remove string-checks from code using Notice::saveNew()
Diffstat (limited to 'actions')
-rw-r--r--actions/newnotice.php7
-rw-r--r--actions/twitapistatuses.php5
2 files changed, 0 insertions, 12 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 23ec2a1b5..d5b0332f4 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -255,13 +255,6 @@ class NewnoticeAction extends Action
$notice = Notice::saveNew($user->id, $content_shortened, 'web', 1,
($replyto == 'false') ? null : $replyto);
- if (is_string($notice)) {
- if (isset($filename)) {
- $this->deleteFile($filename);
- }
- $this->clientError($notice);
- }
-
if (isset($mimetype)) {
$this->attachFile($notice, $fileRecord);
}
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php
index 2f10ff966..87043b182 100644
--- a/actions/twitapistatuses.php
+++ b/actions/twitapistatuses.php
@@ -297,11 +297,6 @@ class TwitapistatusesAction extends TwitterapiAction
html_entity_decode($status, ENT_NOQUOTES, 'UTF-8'),
$source, 1, $reply_to);
- if (is_string($notice)) {
- $this->serverError($notice);
- return;
- }
-
common_broadcast_notice($notice);
$apidata['api_arg'] = $notice->id;
}