Allow a feed to set publicWebHosting to null
This should be equivalent to having not set publicWebHosting at all.
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ module.exports = function (sbot, id, cb) {
|
|||||||
if (c.description) feedAbout.description = c.description
|
if (c.description) feedAbout.description = c.description
|
||||||
if (c.title) feedAbout.title = c.title
|
if (c.title) feedAbout.title = c.title
|
||||||
if (c.startDateTime) feedAbout.startDateTime = c.startDateTime
|
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) {
|
}, function (err) {
|
||||||
if (err) return cb(err)
|
if (err) return cb(err)
|
||||||
// Use whatever properties have the most counts.
|
// Use whatever properties have the most counts.
|
||||||
|
|||||||
Reference in New Issue
Block a user