This commit is contained in:
Umputun
2017-12-30 12:58:58 -06:00
parent 45b22bfe39
commit 001c3abc3c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ Remark42 is a self-hosted, lightweight, and simple (yet functional) comment engi
- Export data to json with automatic backups
- No external databases, everything embedded in a single data file
- Fully dockerized and can be deployed in a single command
- Nice, lightweight and fully customizable UI
- Clean, lightweight and fully customizable UI
- Multi-site mode from a single instance
- Integration with automatic ssl via [nginx-le](https://github.com/umputun/nginx-le)
+3 -3
View File
@@ -55,7 +55,7 @@ func NewBoltDB(sites ...BoltSite) (*BoltDB, error) {
// Create saves new comment to store
func (b *BoltDB) Create(comment Comment) (string, error) {
// fille ID and time if empty
// fill ID and time if empty
if comment.ID == "" {
comment.ID = makeCommentID()
}
@@ -121,7 +121,7 @@ func (b *BoltDB) Create(comment Comment) (string, error) {
return comment.ID, err
}
// Delete removes comment locator from the store
// Delete removes comment, by locator from the store
func (b *BoltDB) Delete(locator Locator, commentID string) error {
bdb, err := b.db(locator.SiteID)
@@ -152,7 +152,7 @@ func (b *BoltDB) Delete(locator Locator, commentID string) error {
})
}
// Find comments for post
// Find retruns all comments for post and sorts results
func (b *BoltDB) Find(request Request) ([]Comment, error) {
res := []Comment{}