forked from deadvey/blogger-nodejs
Fixed an issue with an incomplete example-config.json that made the
server not work at all. Also added a default.css file
This commit is contained in:
@@ -20,6 +20,11 @@ export function increment_hitcount(postID = -1) { // -1 Means it will increment
|
||||
writedata('posts', post, postID)
|
||||
return 0
|
||||
}
|
||||
else {
|
||||
post.hitcount = 1;
|
||||
writedata('posts', post, postID)
|
||||
return 0
|
||||
}
|
||||
return 1
|
||||
}
|
||||
}
|
||||
@@ -72,9 +77,7 @@ export function getdata(data, index=-1) {
|
||||
if (index < result.length) {
|
||||
return result[index]
|
||||
}
|
||||
else {
|
||||
return 1 // This index doesn't exist
|
||||
}
|
||||
return 1 // This index doesn't exist
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user