From: Michael Date: Wed, 15 Apr 2020 05:11:45 +0000 (+0000) Subject: Fix for missing fields X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e5a0ff9572db67952fc2bd601b17a36e45896898;p=friendica.git Fix for missing fields --- diff --git a/src/Model/Item.php b/src/Model/Item.php index b9c01809fd..267ac89363 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -342,7 +342,7 @@ class Item } } - if (array_key_exists('signed_text', $row) && array_key_exists('interaction', $row) && !is_null($row['interaction'])) { + if (array_key_exists('interaction', $row)) { $row['signed_text'] = $row['interaction']; } @@ -672,7 +672,8 @@ class Item { $fields = []; - $fields['item'] = ['id', 'uid', 'parent', 'uri', 'parent-uri', 'thr-parent', 'guid', + $fields['item'] = ['id', 'uid', 'parent', 'uri', 'parent-uri', 'thr-parent', + 'guid', 'uri-id', 'parent-uri-id', 'thr-parent-id', 'contact-id', 'owner-id', 'author-id', 'type', 'wall', 'gravity', 'extid', 'created', 'edited', 'commented', 'received', 'changed', 'psid', 'resource-id', 'event-id', 'tag', 'attach', 'post-type', 'file',