diff --git a/core/structs.go b/core/structs.go index b9624a2..1244567 100644 --- a/core/structs.go +++ b/core/structs.go @@ -113,7 +113,7 @@ func (d *FullData) InsertPage(new *Page, remote string) { oldPage, ok := d.Pages[remote] if !ok || d.Pages[remote].Hash != new.Hash { // pages are different, or there was never an old one - if oldPage != nil && new.Title == "" && oldPage.Title != "" { + if oldPage != nil && oldPage.Title != "" { new.Title = oldPage.Title } d.Pages[remote] = new