mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-02-16 16:45:02 +00:00
FIX: Solved button was showing up for poster, not topic poster
This commit is contained in:
parent
6cc8bb8ad4
commit
11a0c293b8
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user