This commit is contained in:
syuilo 2018-12-23 03:41:28 +09:00 committed by GitHub
parent 2eea6e9f39
commit ed8e55d9a2
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);
}); });
} }