forked from mirror/pixelfed
Update ComposeModal.vue
This commit is contained in:
parent
64950748cf
commit
fad680eba1
1 changed files with 3 additions and 10 deletions
|
@ -340,6 +340,9 @@ export default {
|
|||
|
||||
beforeMount() {
|
||||
this.fetchProfile();
|
||||
if(this.config.uploader.media_types.includes('video/mp4') == false) {
|
||||
this.composeType = 'post'
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
@ -390,16 +393,6 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
fetchConfig() {
|
||||
axios.get('/api/v2/config').then(res => {
|
||||
this.config = res.data;
|
||||
window.pixelfed.config = window.pixelfed.config || res.data;
|
||||
if(this.config.uploader.media_types.includes('video/mp4') == false) {
|
||||
this.composeType = 'post'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
fetchProfile() {
|
||||
axios.get('/api/v1/accounts/verify_credentials').then(res => {
|
||||
this.profile = res.data;
|
||||
|
|
Loading…
Reference in a new issue