mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 01:12:26 -05:00
[feature] Make instance thumbnail configurable via admin panel (#973)
* [feature] Make instance thumbnail configurable via admin panel * log db errors in InstanceToAPIInstance * only update instance in db if necessary * start adding tests * finish test
This commit is contained in:
parent
eb25739c34
commit
b4f7316a4c
11 changed files with 183 additions and 57 deletions
|
|
@ -32,9 +32,9 @@ module.exports = function ({ apiCall, getChanges }) {
|
|||
const state = getState().instances.adminSettings;
|
||||
|
||||
const update = getChanges(state, {
|
||||
formKeys: ["title", "short_description", "description", "contact_account.username", "email", "terms"],
|
||||
formKeys: ["title", "short_description", "description", "contact_account.username", "email", "terms", "thumbnail_description"],
|
||||
renamedKeys: {"contact_account.username": "contact_username"},
|
||||
// fileKeys: ["avatar", "header"]
|
||||
fileKeys: ["thumbnail"]
|
||||
});
|
||||
|
||||
return dispatch(apiCall("PATCH", "/api/v1/instance", update, "form"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue