1
0
Fork 0

"id" is now post-user-id

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

View file

@ -66,6 +66,14 @@ class Notifier
return;
}
$target_id = $post['id'];
} elseif (!in_array($cmd, [Delivery::MAIL, Delivery::SUGGESTION, Delivery::REMOVAL, Delivery::RELOCATION])) {
$post = Post::selectFirst(['id'], ['item-id' => $post_uriid]);
$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;
}