Commit 0b8dc2980200cda5d0f2b25df1d4b9bf8dda60c8
Allow a feed to set publicWebHosting to null
This should be equivalent to having not set publicWebHosting at all.cel committed on 8/17/2018, 10:30:16 PM
Parent: 78e7e8a0087325795a746c98fad5255a3ae405aa
Files changed
lib/about.js | changed |
lib/about.js | ||
---|---|---|
@@ -30,9 +30,9 @@ | ||
30 | 30 … | if (c.image) feedAbout.image = linkDest(c.image) |
31 | 31 … | if (c.description) feedAbout.description = c.description |
32 | 32 … | if (c.title) feedAbout.title = c.title |
33 | 33 … | if (c.startDateTime) feedAbout.startDateTime = c.startDateTime |
34 | - if (c.publicWebHosting != null && author === c.about) feedAbout.publicWebHosting = defalsify(c.publicWebHosting) | |
34 … | + if (c.publicWebHosting !== undefined && author === c.about) feedAbout.publicWebHosting = defalsify(c.publicWebHosting) | |
35 | 35 … | }, function (err) { |
36 | 36 … | if (err) return cb(err) |
37 | 37 … | // Use whatever properties have the most counts. |
38 | 38 … | // Usually we would want to handle renames for dead feeds and such, |
Built with git-ssb-web