diff --git a/service/notesservice.php b/service/notesservice.php index 929ee72ba..c745fa34e 100644 --- a/service/notesservice.php +++ b/service/notesservice.php @@ -107,7 +107,7 @@ public function create ($userId) { // check new note exists already and we need to number it // pass -1 because no file has id -1 and that will ensure // to only return filenames that dont yet exist - $path = $this->generateFileName($folder, $title, "txt", -1); + $path = $this->generateFileName($folder, $title, "md", -1); $file = $folder->newFile($path); return Note::fromFile($file, $folder);