We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e10d023d authored by Zach Copley's avatar Zach Copley

API - handle any exceptions thrown during notice save. The API was

occasionally spitting out HTML, which is hard for clients to deal
parent c09db79b
......@@ -244,11 +244,17 @@ class ApiStatusesUpdateAction extends ApiAuthAction
$options = array_merge($options, $locOptions);
$this->notice =
try {
$this->notice = Notice::saveNew(
} catch (Exception $e) {
if (isset($upload)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment