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