X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=85f407d36ce223e1a2d222f967bbf7a1918638ed;hb=b4572a529376bc9e2e1c5396a4061ac499d7d7e9;hp=64bd7a9c338dbe9ad77f46e47d1c23193414dc23;hpb=cf38b62993b52a9b9952ae94898d78ed856901e4;p=friendica.git diff --git a/update.php b/update.php index 64bd7a9c33..85f407d36c 100644 --- a/update.php +++ b/update.php @@ -1038,3 +1038,26 @@ function update_1440() return Update::SUCCESS; } + +function update_1441() +{ + $languages = DI::l10n()->getAvailableLanguages(); + + $albums = [Photo::PROFILE_PHOTOS]; + foreach ($languages as $language) { + $albums[] = DI::l10n()->withLang($language)->t(Photo::PROFILE_PHOTOS); + } + $albums = array_unique($albums); + + Photo::update(['photo-type' => Photo::USER_AVATAR], ['album' => $albums]); + + return Update::SUCCESS; +} + +function update_1442() +{ + // transform blocked intros into ignored intros + DBA::update('intro', ['ignore' => 1, 'blocked' => 0], ['blocked' => 1]); + + return Update::SUCCESS; +}