This commit is contained in:
syuilo 2018-12-23 03:41:28 +09:00 committed by GitHub
parent 874b8fc3c2
commit 2bc708f8e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -207,8 +207,7 @@ export default Vue.extend({
this.visibility = this.reply.visibility; this.visibility = this.reply.visibility;
} }
// if (this.reply) {
if (this.reply && this.reply.visibility === 'specified') {
this.$root.api('users/show', { userId: this.reply.userId }).then(user => { this.$root.api('users/show', { userId: this.reply.userId }).then(user => {
this.visibleUsers.push(user); this.visibleUsers.push(user);
}); });

View File

@ -197,9 +197,8 @@ export default Vue.extend({
this.visibility = this.reply.visibility; this.visibility = this.reply.visibility;
} }
// if (this.reply) {
if (this.reply && this.reply.visibility === 'specified') { this.$root.api('users/show', { userId: this.reply.userId }).then(user => {
this.$root.api('users/show', { userId: this.reply.userId }).then(user => {
this.visibleUsers.push(user); this.visibleUsers.push(user);
}); });
} }