From d3ce7f15b87885815ec83d8ffcaa99b4566d7ee4 Mon Sep 17 00:00:00 2001 From: Le_Futuriste Date: Sat, 2 Dec 2017 10:46:54 +0100 Subject: [PATCH] Change default file extention Changed txt to md because it's markdown note, it's useful because we can, after download the note, or on windows client or whatever edit the notes with appropriated software tested on nextcloud 12 --- service/notesservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);