Fix check for creating free url notes

Signed-off-by: Mark Steve Samson <marksteve@thinkingmachin.es>
This commit is contained in:
Mark Steve Samson 2020-03-17 20:52:22 +08:00
parent 4c7497960a
commit 72c9d049f7
No known key found for this signature in database
GPG Key ID: 26675B54DFC1C9A1
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')
}