logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: d4f5b3feec1da69b69181b0e8a471bf94e5a5e4c
parent: 7707048bff772809feaee33d81ff07e028a4ce26
Author: Roger Braun <roger@rogerbraun.net>
Date:   Tue, 12 Jun 2018 19:28:48 +0200

Use parents scope if available.

Diffstat:

Msrc/components/post_status_form/post_status_form.js5+++--
Msrc/components/status/status.vue2+-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js @@ -23,7 +23,8 @@ const PostStatusForm = { props: [ 'replyTo', 'repliedUser', - 'attentions' + 'attentions', + 'messageScope' ], components: { MediaUpload @@ -49,7 +50,7 @@ const PostStatusForm = { newStatus: { status: statusText, files: [], - visibility: 'public' + visibility: this.messageScope || 'public' }, caret: 0 } diff --git a/src/components/status/status.vue b/src/components/status/status.vue @@ -96,7 +96,7 @@ </div> <div class="container" v-if="replying"> <div class="reply-left"/> - <post-status-form class="reply-body" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" v-on:posted="toggleReplying"/> + <post-status-form class="reply-body" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" :message-scope="status.visibility" v-on:posted="toggleReplying"/> </div> </template> </div>