Revert Post::selectOriginal to original logic
This commit is contained in:
parent
0985ddb3ff
commit
ba967386f4
1 changed files with 1 additions and 4 deletions
|
@ -263,10 +263,7 @@ class Post
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
$final_query_condition = ['uri-id' => $result['thr-parent-id']];
|
return self::selectFirst($original_fields, ['uri-id' => $result['thr-parent-id'], 'uid' => [0, $result['uid']]], $params);
|
||||||
$final_query_condition = DBA::mergeConditions($final_query_condition, ['uid != 0']);
|
|
||||||
$final_params = ['order' => ['id']];
|
|
||||||
return self::selectFirst($original_fields, $final_query_condition, $final_params);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue