fix error with cached repeat of deleted original in api output
This commit is contained in:
parent
6ff13d6828
commit
9384a6e242
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user