mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00:00
properly get admin account contact from instance response
This commit is contained in:
parent
d6a2801d49
commit
45c4c1fa3f
2 changed files with 3 additions and 2 deletions
|
@ -67,7 +67,7 @@ module.exports = function AdminSettings() {
|
|||
/>
|
||||
|
||||
<TextInput
|
||||
id="contact_username"
|
||||
id="contact_account.username"
|
||||
name="Contact user (local account username)"
|
||||
placeHolder="admin"
|
||||
/>
|
||||
|
|
|
@ -32,7 +32,8 @@ module.exports = function ({ apiCall, getChanges }) {
|
|||
const state = getState().instances.adminSettings;
|
||||
|
||||
const update = getChanges(state, {
|
||||
formKeys: ["title", "short_description", "description", "contact_username", "email", "terms"],
|
||||
formKeys: ["title", "short_description", "description", "contact_account.username", "email", "terms"],
|
||||
renamedKeys: {"contact_account.username": "contact_username"},
|
||||
// fileKeys: ["avatar", "header"]
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue