1
0
Fork 0
forked from mirror/pixelfed

Update ComposeModal.vue

This commit is contained in:
Daniel Supernault 2019-09-05 21:32:04 -06:00
parent 64950748cf
commit fad680eba1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -340,6 +340,9 @@ export default {
beforeMount() { beforeMount() {
this.fetchProfile(); this.fetchProfile();
if(this.config.uploader.media_types.includes('video/mp4') == false) {
this.composeType = 'post'
}
}, },
mounted() { mounted() {
@ -390,16 +393,6 @@ export default {
}, },
methods: { 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() { fetchProfile() {
axios.get('/api/v1/accounts/verify_credentials').then(res => { axios.get('/api/v1/accounts/verify_credentials').then(res => {
this.profile = res.data; this.profile = res.data;