Add textlimit
This commit is contained in:
		
							parent
							
								
									e2248bcf4f
								
							
						
					
					
						commit
						e49cf7b67a
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -78,9 +78,10 @@ const i18n = new VueI18n({
 | 
			
		|||
window.fetch('/api/statusnet/config.json')
 | 
			
		||||
  .then((res) => res.json())
 | 
			
		||||
  .then((data) => {
 | 
			
		||||
    const {name, closed: registrationClosed, textlimit} = data
 | 
			
		||||
    const {name, closed: registrationClosed, textlimit} = data.site
 | 
			
		||||
 | 
			
		||||
    store.dispatch('setOption', { name: 'name', value: name })
 | 
			
		||||
    store.dispatch('setOption', { name: 'registrationOpen', value: !registrationClosed })
 | 
			
		||||
    store.dispatch('setOption', { name: 'registrationOpen', value: (registrationClosed === '0') })
 | 
			
		||||
    store.dispatch('setOption', { name: 'textlimit', value: parseInt(textlimit) })
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue