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