New table "post-thread-user"

This commit is contained in:
Michael 2021-01-31 18:32:22 +00:00
parent 998f127cb8
commit 15162b4027
6 changed files with 170 additions and 17 deletions

View file

@ -1099,6 +1099,10 @@ class Item
$id = Post\User::insert($item['uri-id'], $item['uid'], $item);
if ($id) {
if ($item['gravity'] == GRAVITY_PARENT) {
Post\ThreadUser::insert($item['uri-id'], $item['uid'], $item);
}
// Remove all fields that aren't part of the item table
foreach ($item as $field => $value) {
if (!in_array($field, $structure['item'])) {