summaryrefslogtreecommitdiff
path: root/lib/apiaction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-07-13 10:51:25 -0400
committerEvan Prodromou <evan@status.net>2010-07-13 10:51:25 -0400
commitdfd65a4290c7c2f6137d5508597189c4202bfaee (patch)
tree48ab813259bd90ecf1c2b519066332eb287702c3 /lib/apiaction.php
parentab149755b62aaf7959a97e4a425e20aebf4c92cc (diff)
push exception on missing profile down to Notice::getProfile()
Diffstat (limited to 'lib/apiaction.php')
-rw-r--r--lib/apiaction.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/apiaction.php b/lib/apiaction.php
index 16dd87814..01985f0db 100644
--- a/lib/apiaction.php
+++ b/lib/apiaction.php
@@ -462,10 +462,6 @@ class ApiAction extends Action
{
$profile = $notice->getProfile();
- if (empty($profile)) {
- throw new ServerException(sprintf(_('No such profile: %d'), $notice->profile_id));
- }
-
$entry = array();
// We trim() to avoid extraneous whitespace in the output
@@ -798,7 +794,7 @@ class ApiAction extends Action
$entry = $this->twitterRssEntryArray($n);
$this->showTwitterRssItem($entry);
} catch (Exception $e) {
- common_log(LOG_ERR, "Error with notice {$n->id}: " . $e->getMessage());
+ common_log(LOG_ERR, $e->getMessage());
// continue on exceptions
}
}
@@ -808,7 +804,7 @@ class ApiAction extends Action
$entry = $this->twitterRssEntryArray($notice);
$this->showTwitterRssItem($entry);
} catch (Exception $e) {
- common_log(LOG_ERR, "Error with notice {$n->id}: " . $e->getMessage());
+ common_log(LOG_ERR, $e->getMessage());
// continue on exceptions
}
}