Update social.coffee

We got syntax wrong. Use isnt instead of !==
This commit is contained in:
Robert Best 2023-10-08 11:46:45 -04:00 committed by GitHub
parent 70cebf5ab2
commit 7449fdab44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ module.exports = exports = (log, loga, argv) ->
res.header 'Access-Control-Allow-Origin', req.get('Origin')||'*'
res.header 'Access-Control-Allow-Credentials', 'true'
# protect unclaimed by adding "add owner isnt ''" - maybe via parameter
return next() if (isAuthorized(req) and owner !== '') or allowedToView(req)
return next() if (isAuthorized(req) and (owner isnt '')) or allowedToView(req)
return res.redirect("/view/#{m[1]}") if m = req.url.match /\/(.*)\.html/
return res.json(['Login Required']) if req.url == '/system/sitemap.json'