mirror of
https://github.com/friendica/friendica
synced 2024-11-18 21:43:40 +00:00
Fix: Queries with empty selections hadn't worked anymore
This commit is contained in:
parent
979199c442
commit
e17e385c41
1 changed files with 3 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue