mirror of
https://github.com/go-shiori/shiori.git
synced 2025-02-25 00:14:10 +08:00
Merge pull request #42 from generall/master
Add check for empty tag on import
This commit is contained in:
commit
24bdec2c05
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ func importBookmarks(pth string, generateTag bool) error {
|
|||
// Get bookmark tags
|
||||
tags := []model.Tag{}
|
||||
for _, strTag := range strings.Split(strTags, ",") {
|
||||
tags = append(tags, model.Tag{Name: strTag})
|
||||
if strTag != "" {
|
||||
tags = append(tags, model.Tag{Name: strTag})
|
||||
}
|
||||
}
|
||||
|
||||
// Get bookmark excerpt
|
||||
|
|
Loading…
Reference in a new issue