FIX: Solved button was showing up for poster, not topic poster

This commit is contained in:
Robin Ward 2016-03-18 13:17:37 -04:00
parent 6cc8bb8ad4
commit 11a0c293b8
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ function initializeWithApi(api) {
const canAccept = attrs.can_accept_answer; const canAccept = attrs.can_accept_answer;
const canUnaccept = attrs.can_unaccept_answer; const canUnaccept = attrs.can_unaccept_answer;
const accepted = attrs.accepted_answer; const accepted = attrs.accepted_answer;
const isOp = currentUser && currentUser.id === attrs.user_id; const isOp = currentUser && currentUser.id === attrs.topicCreatedById;
const position = (!accepted && canAccept && !isOp) ? 'second-last-hidden' : 'first'; const position = (!accepted && canAccept && !isOp) ? 'second-last-hidden' : 'first';
if (canAccept) { if (canAccept) {