Merge pull request #1460 from thinkingmachines/fix/create-note

Fix check for creating free url notes
This commit is contained in:
Raccoon 2020-03-26 05:15:07 +08:00 committed by GitHub
commit a8da6329a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ async function getNoteById (noteId, { includeUser } = { includeUser: false }) {
}
async function createNote (userId, noteAlias) {
if (!config.allowAnonymous && !!userId) {
if (!config.allowAnonymous && !userId) {
throw new Error('can not create note')
}