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

Commit 9384a6e2 authored by Evan Prodromou's avatar Evan Prodromou

fix error with cached repeat of deleted original in api output

parent 6ff13d68
...@@ -224,9 +224,13 @@ class ApiAction extends Action ...@@ -224,9 +224,13 @@ class ApiAction extends Action
return $base; return $base;
} else { } else {
$original = Notice::staticGet('id', $notice->repeat_of); $original = Notice::staticGet('id', $notice->repeat_of);
$original_array = $this->twitterSimpleStatusArray($original, $include_user); if (empty($original)) {
$original_array['retweeted_status'] = $base; return $base;
return $original_array; } else {
$original_array = $this->twitterSimpleStatusArray($original, $include_user);
$original_array['retweeted_status'] = $base;
return $original_array;
}
} }
} }
......
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