Allow creators to Creator-Like on top of basic reactions

1456
This commit is contained in:
infinite-persistence 2022-05-05 22:09:52 +08:00
parent 99383272a8
commit b4a76f4169
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -460,7 +460,8 @@ async function getReactedChannelNames(commentId: string, myChannelClaims: ?Array
for (let i = 0; i < reactions.length; ++i) {
const r = reactions[i];
const myReactions = r.myReactions[commentId];
const myReactionValues = Object.values(myReactions);
const { creator_like, creators_like, ...basicReactions } = myReactions;
const myReactionValues = Object.values(basicReactions);
if (myReactionValues.includes(1)) {
reactedChannelNames.push(r.channelName);