forked from GNUsocial/gnu-social
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;
|
||||
} else {
|
||||
$original = Notice::staticGet('id', $notice->repeat_of);
|
||||
$original_array = $this->twitterSimpleStatusArray($original, $include_user);
|
||||
$original_array['retweeted_status'] = $base;
|
||||
return $original_array;
|
||||
if (empty($original)) {
|
||||
return $base;
|
||||
} else {
|
||||
$original_array = $this->twitterSimpleStatusArray($original, $include_user);
|
||||
$original_array['retweeted_status'] = $base;
|
||||
return $original_array;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user