Merge pull request #7641 from annando/update-unsearchable
Update the "unsearchable" field in the "self" contact
This commit is contained in:
commit
0c0f3b0fcc
|
@ -34,7 +34,7 @@
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
if (!defined('DB_UPDATE_VERSION')) {
|
if (!defined('DB_UPDATE_VERSION')) {
|
||||||
define('DB_UPDATE_VERSION', 1322);
|
define('DB_UPDATE_VERSION', 1323);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
12
update.php
12
update.php
|
@ -384,3 +384,15 @@ function update_1318()
|
||||||
Worker::add(PRIORITY_LOW, 'ProfileUpdate');
|
Worker::add(PRIORITY_LOW, 'ProfileUpdate');
|
||||||
return Update::SUCCESS;
|
return Update::SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1323()
|
||||||
|
{
|
||||||
|
$users = DBA::select('user', ['uid']);
|
||||||
|
while ($user = DBA::fetch($users)) {
|
||||||
|
Contact::updateSelfFromUserID($user['uid']);
|
||||||
|
}
|
||||||
|
DBA::close($users);
|
||||||
|
|
||||||
|
return Update::SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue