@@ -61,7 +61,7 @@ trait GistControllerBase extends ControllerBase {
61
61
val files = getGistFiles(userName, repoName)
62
62
val (fileName, source) = files.head
63
63
64
- (gist, GistInfo (fileName, source, files.length, getForkedCount(userName, repoName), getCommentCount(userName, repoName)))
64
+ (gist, GistInfo (fileName, getLines( source) , files.length, getForkedCount(userName, repoName), getCommentCount(userName, repoName)))
65
65
}
66
66
67
67
html.list(None , gists, page, page * Limit < count)
@@ -445,7 +445,7 @@ trait GistControllerBase extends ControllerBase {
445
445
val repoName = gist.repositoryName
446
446
val files = getGistFiles(userName, repoName, revision)
447
447
val (fileName, source) = files.head
448
- (gist, GistInfo (fileName, source, files.length, getForkedCount(userName, repoName), getCommentCount(userName, repoName)))
448
+ (gist, GistInfo (fileName, getLines( source) , files.length, getForkedCount(userName, repoName), getCommentCount(userName, repoName)))
449
449
}
450
450
451
451
val fullName = getAccountByUserName(userName).get.fullName
0 commit comments