add reason field when approval is required

This commit is contained in:
Shpuld Shpuldson 2021-02-15 11:10:09 +02:00
parent 44bddf6cd2
commit a636e53404
4 changed files with 33 additions and 4 deletions

View file

@ -51,6 +51,7 @@ const getInstanceConfig = async ({ store }) => {
const vapidPublicKey = data.pleroma.vapid_public_key
store.dispatch('setInstanceOption', { name: 'textlimit', value: textlimit })
store.dispatch('setInstanceOption', { name: 'accountApprovalRequired', value: data.approval_required })
if (vapidPublicKey) {
store.dispatch('setInstanceOption', { name: 'vapidPublicKey', value: vapidPublicKey })