Skip to content

Commit

Permalink
Merge pull request #21 from cutls/misskey
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Cutls committed Jul 19, 2019
2 parents 01865e6 + 4fb9a97 commit e6dac98
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/client/components/question.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ export class Question extends React.Component<Props, State> {
</span>
}

renderQuestionUser() {
if (!this.props.questionAnon) return null
if (!this.props.questionUser) return null
return <span className="mr-2">
質問者:&nbsp;
<UserLink {...this.props.questionUser}/>
</span>
}

renderQuestionUserForAdmin() {
if (!me) return null
if (!me.isAdmin) return null
Expand All @@ -69,7 +78,7 @@ export class Question extends React.Component<Props, State> {
<UserLink {...this.props.questionUser}/>
</span>
}

renderAnswer() {
return <CardText className="question-text">{this.props.answer}</CardText>
}
Expand Down

0 comments on commit e6dac98

Please sign in to comment.