This commit is contained in:
Henry Jameson 2026-01-22 20:52:47 +02:00
commit 35a3d59235
12 changed files with 80 additions and 65 deletions

View file

@ -18,11 +18,6 @@ const defaultState = {
registrationOpen: true,
server: 'http://localhost:4040/',
textlimit: 5000,
bannerlimit: null,
avatarlimit: null,
backgroundlimit: null,
uploadlimit: null,
fieldsLimits: null,
private: false,
federating: true,
federationPolicy: null,
@ -41,6 +36,20 @@ const defaultState = {
...staticOrApiConfigDefault,
},
limits: {
bannerlimit: null,
avatarlimit: null,
backgroundlimit: null,
uploadlimit: null,
fieldsLimits: null,
pollLimits: {
max_options: 4,
max_option_chars: 255,
min_expiration: 60,
max_expiration: 60 * 60 * 24,
},
},
// Instance admins can override default settings for the whole instance
prefsStorage: {
...instanceDefaultConfig,
@ -56,6 +65,7 @@ const defaultState = {
birthdayRequired: false,
birthdayMinAge: 0,
restrictedNicknames: [],
localBubbleInstances: [], // Akkoma
// Feature-set, apparently, not everything here is reported...
featureSet: {
@ -79,7 +89,7 @@ const defaultState = {
blockExpiration: false,
tagPolicyAvailable: false,
pollsAvailable: false,
localBubbleInstances: [], // Akkoma
localBubble: false, // Akkoma
},
// Html stuff
@ -90,14 +100,6 @@ const defaultState = {
backendVersion: '',
backendRepository: '',
frontendVersion: '',
pollsAvailable: false,
pollLimits: {
max_options: 4,
max_option_chars: 255,
min_expiration: 60,
max_expiration: 60 * 60 * 24,
},
}
export const useInstanceStore = defineStore('instance', {