Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support likes via gh API #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support likes via gh API #67

wants to merge 1 commit into from

Conversation

LISBON11
Copy link
Collaborator

Добавлена возможность ставить лайк/дизлайк

@@ -36,7 +36,9 @@ block('comments')(
js: {
commentId: comment.id
},
userProfileId: data.user ? data.user.id : null
userProfileId: data.user ? data.user.id : null,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data.user && data.user.id

org: 'bem-site',
repo: 'bem-forum-content-en'
org: 'LISBON11',
repo: 'Lead'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лишнее

@@ -256,6 +256,30 @@ function makeLabelsRequest(labelRequestUrl, opts) {
.then(labels => labels.body);
}

function changeReactions(req, res) {
var urlPart = (req.body.blockType === 'comment' && 'comments/') || '';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это поле должно называться entityType и не зависеть от названий блоков верстки

@innabelaya
Copy link

@tadatuta @LISBON11 давайте вернемся к этому вопросу :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants