Add uri as well
This commit is contained in:
parent
6140f850e1
commit
9587787089
1 changed files with 2 additions and 1 deletions
|
@ -981,9 +981,10 @@ class Processor
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($receiver != 0) && empty($item['parent-uri-id']) && !empty($item['thr-parent-id'])) {
|
if (($receiver != 0) && empty($item['parent-uri-id']) && !empty($item['thr-parent-id'])) {
|
||||||
$parent = Post::selectFirst(['parent-uri-id'], ['uri-id' => $item['thr-parent-id'], 'uid' => [0, $receiver]]);
|
$parent = Post::selectFirst(['parent-uri-id', 'parent-uri'], ['uri-id' => $item['thr-parent-id'], 'uid' => [0, $receiver]]);
|
||||||
if (!empty($parent['parent-uri-id'])) {
|
if (!empty($parent['parent-uri-id'])) {
|
||||||
$item['parent-uri-id'] = $parent['parent-uri-id'];
|
$item['parent-uri-id'] = $parent['parent-uri-id'];
|
||||||
|
$item['parent-uri'] = $parent['parent-uri'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue