mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Issue 13041: API activities for reshared posts are now performed on the original posts
This commit is contained in:
parent
f74cc59530
commit
a5b00e9199
17 changed files with 107 additions and 30 deletions
|
@ -57,8 +57,9 @@ class Context extends BaseApi
|
|||
$parents = [];
|
||||
$children = [];
|
||||
|
||||
$parent = Post::selectFirst(['parent-uri-id'], ['uri-id' => $id]);
|
||||
$parent = Post::selectOriginal(['uri-id', 'parent-uri-id'], ['uri-id' => $id]);
|
||||
if (DBA::isResult($parent)) {
|
||||
$id = $parent['uri-id'];
|
||||
$params = ['order' => ['uri-id' => true]];
|
||||
$condition = ['parent-uri-id' => $parent['parent-uri-id'], 'gravity' => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT]];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue