"id" is now post-user-id

This commit is contained in:
Michael 2021-02-14 18:33:15 +00:00
parent 6e1483545e
commit 36357e790e
9 changed files with 76 additions and 63 deletions

View file

@ -62,6 +62,13 @@ class Delivery
return;
}
$target_id = $post['id'];
} elseif (!in_array($cmd, [Delivery::MAIL, Delivery::SUGGESTION, Delivery::REMOVAL, Delivery::RELOCATION])) {
$post = Post::selectFirst(['id', 'uid', 'uri-id'], ['item-id' => $post_uriid]);
if (DBA::isResult($post)) {
$target_id = $post['id'];
$sender_uid = $post['uid'];
$post_uriid = $post['uri-id'];
}
} else {
$target_id = $post_uriid;
}