diff options
| author | nytpu <alex@nytpu.com> | 2021-04-19 10:40:33 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-04-19 10:40:33 -0600 |
| commit | 51abebb6631025b6195a6cae0f399d20d4401dfd (patch) | |
| tree | a157594725d13f84e4a4f23da3ad1e076aa9474b /core | |
| parent | fd2667cb9f6fe15c1770b82372007524aadb1cf0 (diff) | |
don't overwrite old title when updating page
Diffstat (limited to 'core')
| -rw-r--r-- | core/structs.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
