chore: handle untitled post
0f9c47c1
1 file(s) · +3 −0
| 107 | 107 | if title == "" { |
|
| 108 | 108 | title = deriveTitleFromHTML(firstNonEmpty(item.Description, item.Content)) |
|
| 109 | 109 | } |
|
| 110 | + | if title == "" { |
|
| 111 | + | title = "Untitled post" |
|
| 112 | + | } |
|
| 110 | 113 | author := "" |
|
| 111 | 114 | if item.Author != nil { |
|
| 112 | 115 | author = strings.TrimSpace(item.Author.Name) |