"id" is now post-user-id
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user