1
1
Fork 0

Merge pull request #8466 from annando/internal-psid

Should fix the unknown "internal-psid" field
This commit is contained in:
Michael Vogel 2020-03-29 14:31:44 +02:00 committed by GitHub
commit 11f38ee303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,7 +177,7 @@ class Item
}
$pinned = [];
while ($useritem = self::fetch($useritems)) {
while ($useritem = DBA::fetch($useritems)) {
$pinned[] = $useritem['iid'];
}
DBA::close($useritems);
@ -846,7 +846,9 @@ class Item
*/
private static function constructSelectFields(array $fields, array $selected)
{
$selected = array_merge($selected, ['internal-iid', 'internal-psid', 'internal-iaid', 'internal-network']);
if (!empty($selected)) {
$selected = array_merge($selected, ['internal-iid', 'internal-psid', 'internal-iaid', 'internal-network']);
}
if (in_array('verb', $selected)) {
$selected[] = 'internal-activity';