another unrelated change
This commit is contained in:
parent
fc66830138
commit
dc96e5ac53
1 changed files with 10 additions and 10 deletions
|
|
@ -88,25 +88,25 @@ const getInstanceConfig = async ({ store }) => {
|
||||||
data.pleroma,
|
data.pleroma,
|
||||||
)
|
)
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'textlimit',
|
path: 'textlimit',
|
||||||
value: textlimit,
|
value: textlimit,
|
||||||
})
|
})
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'accountApprovalRequired',
|
path: 'accountApprovalRequired',
|
||||||
value: data.approval_required,
|
value: data.approval_required,
|
||||||
})
|
})
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'birthdayRequired',
|
path: 'birthdayRequired',
|
||||||
value: !!data.pleroma?.metadata.birthday_required,
|
value: !!data.pleroma?.metadata.birthday_required,
|
||||||
})
|
})
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'birthdayMinAge',
|
path: 'birthdayMinAge',
|
||||||
value: data.pleroma?.metadata.birthday_min_age || 0,
|
value: data.pleroma?.metadata.birthday_min_age || 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (vapidPublicKey) {
|
if (vapidPublicKey) {
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'vapidPublicKey',
|
path: 'vapidPublicKey',
|
||||||
value: vapidPublicKey,
|
value: vapidPublicKey,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -258,7 +258,7 @@ const getAppSecret = async ({ store }) => {
|
||||||
const resolveStaffAccounts = ({ store, accounts }) => {
|
const resolveStaffAccounts = ({ store, accounts }) => {
|
||||||
const nicknames = accounts.map((uri) => uri.split('/').pop())
|
const nicknames = accounts.map((uri) => uri.split('/').pop())
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'staffAccounts',
|
path: 'staffAccounts',
|
||||||
value: nicknames,
|
value: nicknames,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -384,20 +384,20 @@ const getNodeInfo = async ({ store }) => {
|
||||||
|
|
||||||
const software = data.software
|
const software = data.software
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'backendVersion',
|
path: 'backendVersion',
|
||||||
value: software.version,
|
value: software.version,
|
||||||
})
|
})
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'backendRepository',
|
path: 'backendRepository',
|
||||||
value: software.repository,
|
value: software.repository,
|
||||||
})
|
})
|
||||||
|
|
||||||
const priv = metadata.private
|
const priv = metadata.private
|
||||||
useInstanceStore().set({ name: 'privateMode', value: priv })
|
useInstanceStore().set({ path: 'privateMode', value: priv })
|
||||||
|
|
||||||
const frontendVersion = window.___pleromafe_commit_hash
|
const frontendVersion = window.___pleromafe_commit_hash
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'frontendVersion',
|
path: 'frontendVersion',
|
||||||
value: frontendVersion,
|
value: frontendVersion,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue