From 3116e776a05fc0c308a4f6814250873ed27819c5 Mon Sep 17 00:00:00 2001 From: les Date: Wed, 4 Dec 2019 00:50:15 +0100 Subject: [PATCH] [refactor] remove `username` field and let instance_name be the only AP Actor --- components/Register.vue | 3 -- components/admin/Federation.vue | 2 +- components/admin/Users.vue | 6 --- docs/_config.yml | 4 +- locales/email/en.json | 2 +- locales/email/it.json | 2 +- locales/es.json | 1 - locales/it.json | 1 - pages/settings.vue | 3 +- server/api/controller/settings.js | 47 +++++++++++++++---- server/api/controller/user.js | 14 ++---- server/api/models/user.js | 50 ++++---------------- server/federation/follows.js | 27 +++++------ server/federation/helpers.js | 78 +++++++------------------------ server/federation/index.js | 2 +- server/federation/users.js | 28 ++++++----- server/federation/webfinger.js | 9 ++-- server/firstrun.js | 14 ------ server/helpers.js | 6 +-- server/notifier.js | 6 +-- store/index.js | 5 +- views/feed/rss.pug | 2 +- yarn.lock | 48 ++++++++++++++++++- 23 files changed, 159 insertions(+), 201 deletions(-) diff --git a/components/Register.vue b/components/Register.vue index 19879340..82303e88 100644 --- a/components/Register.vue +++ b/components/Register.vue @@ -5,9 +5,6 @@ p(v-html="$t('register.description')") div(v-loading='loading') - el-input.mb-2(v-model='user.username' type='text' name='username' - :placeholder='$t("common.username")' prefix-icon='el-icon-user') - el-input.mb-2(ref='email' v-model='user.email' type='email' required :placeholder='$t("common.email")' autocomplete='email' prefix-icon='el-icon-message' name='email') diff --git a/components/admin/Federation.vue b/components/admin/Federation.vue index 87b87659..d3d9c45d 100644 --- a/components/admin/Federation.vue +++ b/components/admin/Federation.vue @@ -1,6 +1,6 @@