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,
|
||||
)
|
||||
useInstanceStore().set({
|
||||
name: 'textlimit',
|
||||
path: 'textlimit',
|
||||
value: textlimit,
|
||||
})
|
||||
useInstanceStore().set({
|
||||
name: 'accountApprovalRequired',
|
||||
path: 'accountApprovalRequired',
|
||||
value: data.approval_required,
|
||||
})
|
||||
useInstanceStore().set({
|
||||
name: 'birthdayRequired',
|
||||
path: 'birthdayRequired',
|
||||
value: !!data.pleroma?.metadata.birthday_required,
|
||||
})
|
||||
useInstanceStore().set({
|
||||
name: 'birthdayMinAge',
|
||||
path: 'birthdayMinAge',
|
||||
value: data.pleroma?.metadata.birthday_min_age || 0,
|
||||
})
|
||||
|
||||
if (vapidPublicKey) {
|
||||
useInstanceStore().set({
|
||||
name: 'vapidPublicKey',
|
||||
path: 'vapidPublicKey',
|
||||
value: vapidPublicKey,
|
||||
})
|
||||
}
|
||||
|
|
@ -258,7 +258,7 @@ const getAppSecret = async ({ store }) => {
|
|||
const resolveStaffAccounts = ({ store, accounts }) => {
|
||||
const nicknames = accounts.map((uri) => uri.split('/').pop())
|
||||
useInstanceStore().set({
|
||||
name: 'staffAccounts',
|
||||
path: 'staffAccounts',
|
||||
value: nicknames,
|
||||
})
|
||||
}
|
||||
|
|
@ -384,20 +384,20 @@ const getNodeInfo = async ({ store }) => {
|
|||
|
||||
const software = data.software
|
||||
useInstanceStore().set({
|
||||
name: 'backendVersion',
|
||||
path: 'backendVersion',
|
||||
value: software.version,
|
||||
})
|
||||
useInstanceStore().set({
|
||||
name: 'backendRepository',
|
||||
path: 'backendRepository',
|
||||
value: software.repository,
|
||||
})
|
||||
|
||||
const priv = metadata.private
|
||||
useInstanceStore().set({ name: 'privateMode', value: priv })
|
||||
useInstanceStore().set({ path: 'privateMode', value: priv })
|
||||
|
||||
const frontendVersion = window.___pleromafe_commit_hash
|
||||
useInstanceStore().set({
|
||||
name: 'frontendVersion',
|
||||
path: 'frontendVersion',
|
||||
value: frontendVersion,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue