Skip to content

Commit

Permalink
Fixed gitment errror: Validation Failed
Browse files Browse the repository at this point in the history
  • Loading branch information
BearD01001 committed Mar 10, 2018
1 parent 7e65d8a commit 9d6e08d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layout/_scripts/third-party/comments/gitment.swig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
var clientId = '{{theme.gitment.client_id}}';
var clientSecret = '{{theme.gitment.client_secret}}';

if (id.length > 50) {
id = id.slice(0, 45)
id += '...'
}

var gitment = new Gitment({
id: id,
owner: owner,
Expand Down

0 comments on commit 9d6e08d

Please sign in to comment.