'server-blocked' => false,
'failed' => false,
'deleted' => false,
+ 'unsearchable' => false,
'uid' => $uid
];
}
$condition = DBA::mergeConditions($condition,
- ["(NOT `unsearchable` OR `nurl` IN (SELECT `nurl` FROM `owner-view` WHERE `publish` OR `net-publish`))
- AND (`addr` LIKE ? OR `name` LIKE ? OR `nick` LIKE ?)", $search, $search, $search]);
+ ["(`addr` LIKE ? OR `name` LIKE ? OR `nick` LIKE ?)", $search, $search, $search]);
return DBA::selectToArray('account-user-view', [], $condition, $params);
}
return Update::SUCCESS;
}
+
+function update_1518()
+{
+ $users = DBA::select('user', ['uid']);
+ while ($user = DBA::fetch($users)) {
+ Contact::updateSelfFromUserID($user['uid']);
+ }
+ DBA::close($users);
+
+ return Update::SUCCESS;
+}