Skip to content
Snippets Groups Projects
Commit 77b441f1 authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

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

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

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

* 非公開へのリプライでも元の公開範囲を引き継ぐ
parent f6e4a177
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment