Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #19 from Coding/wss
Browse files Browse the repository at this point in the history
change other theme report
  • Loading branch information
wusisu committed Sep 29, 2017
2 parents c146c2d + 35ff87b commit 86f35e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gitment.js
Expand Up @@ -194,9 +194,9 @@ class Gitment {
}

post(content) {
const { author, theme } = this
const { author, blog_theme } = this
return this.getIssue()
.then(issue => http.post(issue.comments_url, { content, author, theme }, ''))
.then(issue => http.post(issue.comments_url, { content, author, theme: blog_theme }, ''))
.then(data => {
this.state.meta.comments++
const pageCount = Math.ceil(this.state.meta.comments / this.perPage)
Expand Down Expand Up @@ -271,9 +271,9 @@ class Gitment {
return Promise.reject()
}

const { author, theme } = this;
const { author, blog_theme } = this;

return http.post(`${this.state.meta.comments_url}/${commentId}/upvote`, { author, theme })
return http.post(`${this.state.meta.comments_url}/${commentId}/upvote`, { author, theme: blog_theme })
.then(() => {
return this.update()

Expand All @@ -283,9 +283,9 @@ class Gitment {
unlikeAComment(commentId) {
if (!this.accessToken) return Promise.reject()

const { author, theme } = this;
const { author, blog_theme } = this;

return http.delete(`${this.state.meta.comments_url}/${commentId}/upvote`, { author, theme })
return http.delete(`${this.state.meta.comments_url}/${commentId}/upvote`, { author, theme: blog_theme })
.then(() => {
return this.update()
})
Expand Down

0 comments on commit 86f35e2

Please sign in to comment.