1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-12 13:48:12 +09:00

リプライで元の公開範囲を引き継ぐ (#2775)

* ホーム/フォロワー限定へのリプライは公開範囲を引き継ぐように

* ダイレクトへのリプライはダイレクトでリプライ先ユーザーを初期設定するように

* 非公開へのリプライでも元の公開範囲を引き継ぐ
This commit is contained in:
MeiMei 2018-09-26 20:39:59 +09:00 committed by syuilo
parent f6e4a1770e
commit 77b441f14c
2 changed files with 24 additions and 0 deletions

View File

@ -178,6 +178,18 @@ export default Vue.extend({
});
}
//
if (this.reply && ['home', 'followers', 'specified', 'private'].includes(this.reply.visibility)) {
this.visibility = this.reply.visibility;
}
//
if (this.reply && this.reply.visibility === 'specified') {
(this as any).api('users/show', { userId: this.reply.userId }).then(user => {
this.visibleUsers.push(user);
});
}
this.$nextTick(() => {
// 稿
if (!this.instant) {

View File

@ -173,6 +173,18 @@ export default Vue.extend({
});
}
//
if (this.reply && ['home', 'followers', 'specified', 'private'].includes(this.reply.visibility)) {
this.visibility = this.reply.visibility;
}
//
if (this.reply && this.reply.visibility === 'specified') {
(this as any).api('users/show', { userId: this.reply.userId }).then(user => {
this.visibleUsers.push(user);
});
}
this.focus();
this.$nextTick(() => {