Allow a feed to set publicWebHosting to null

This should be equivalent to having not set publicWebHosting at all.
This commit is contained in:
cel
2018-08-17 15:30:16 -07:00
parent 78e7e8a008
commit 0b8dc29802
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = function (sbot, id, cb) {
if (c.description) feedAbout.description = c.description
if (c.title) feedAbout.title = c.title
if (c.startDateTime) feedAbout.startDateTime = c.startDateTime
if (c.publicWebHosting != null && author === c.about) feedAbout.publicWebHosting = defalsify(c.publicWebHosting)
if (c.publicWebHosting !== undefined && author === c.about) feedAbout.publicWebHosting = defalsify(c.publicWebHosting)
}, function (err) {
if (err) return cb(err)
// Use whatever properties have the most counts.