summaryrefslogtreecommitdiff
path: root/web/source
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-11-30 16:41:27 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-30 16:41:27 +0100
commit8d581deb28eda62f1434ef95f32baf61f885d0ba (patch)
treed08b1abd73f44565b07cf2688fd9cc6a4b50038a /web/source
parent[bugfix] Avoid accidentally marking changed emojis as orphaned + pruning them... (diff)
downloadgotosocial-8d581deb28eda62f1434ef95f32baf61f885d0ba.tar.xz
[bugfix] use correct key for PATCHing admin email (#1189)
Diffstat (limited to 'web/source')
-rw-r--r--web/source/settings/lib/api/admin.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/source/settings/lib/api/admin.js b/web/source/settings/lib/api/admin.js
index 4ac17ee6a..7df3093fd 100644
--- a/web/source/settings/lib/api/admin.js
+++ b/web/source/settings/lib/api/admin.js
@@ -33,7 +33,10 @@ module.exports = function ({ apiCall, getChanges }) {
const update = getChanges(state, {
formKeys: ["title", "short_description", "description", "contact_account.username", "email", "terms", "thumbnail_description"],
- renamedKeys: {"contact_account.username": "contact_username"},
+ renamedKeys: {
+ "email": "contact_email",
+ "contact_account.username": "contact_username"
+ },
fileKeys: ["thumbnail"]
});