]> git.mxchange.org Git - friendica.git/blobdiff - mod/settings.php
Merge pull request #8191 from MrPetovan/task/7967-mastodon-api-custom_emojis
[friendica.git] / mod / settings.php
index a07ad24ccd1eb67d3abbbbb27ca2a8f4609af912..3ba5dc2b370ab09cbf6d4110035f80f11319ce75 100644 (file)
@@ -611,7 +611,7 @@ function settings_post(App $a)
                `name` = '%s',
                `net-publish` = %d,
                `hide-friends` = %d
-               WHERE `is-default` = 1 AND `uid` = %d",
+               WHERE `uid` = %d",
                intval($publish),
                DBA::escape($username),
                intval($net_publish),
@@ -978,7 +978,7 @@ function settings_content(App $a)
         * ACCOUNT SETTINGS
         */
 
-       $profile = DBA::selectFirst('profile', [], ['is-default' => true, 'uid' => local_user()]);
+       $profile = DBA::selectFirst('profile', [], ['uid' => local_user()]);
        if (!DBA::isResult($profile)) {
                notice(DI::l10n()->t('Unable to find your profile. Please contact your admin.') . EOL);
                return;