From 9216ff8efcc8f3af0a9b0e72a342bdc746abc9d9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 12 Apr 2019 22:45:27 -0600 Subject: [PATCH] Fixes #704 --- resources/assets/js/components/ComposeModal.vue | 5 ++++- resources/views/timeline/partial/new-form.blade.php | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index 71352fe6d..4d200647a 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -135,7 +135,7 @@ - +
@@ -301,6 +301,9 @@ export default { fetchProfile() { axios.get('/api/v1/accounts/verify_credentials').then(res => { this.profile = res.data; + if(res.data.locked == true) { + this.visibility = 'private'; + } }).catch(err => { console.log(err) }); diff --git a/resources/views/timeline/partial/new-form.blade.php b/resources/views/timeline/partial/new-form.blade.php index ebd4f5c95..9fdcdc862 100644 --- a/resources/views/timeline/partial/new-form.blade.php +++ b/resources/views/timeline/partial/new-form.blade.php @@ -34,9 +34,15 @@