This commit is contained in:
Jan Prochazka
2020-12-10 18:45:57 +01:00
parent 728353d60a
commit adcab4ae69

View File

@@ -68,9 +68,9 @@ module.exports = {
markdownManifest_meta: 'get',
async markdownManifest() {
if (!hasPermission(`files/markdown/write`)) return {};
if (!hasPermission(`files/markdown/write`)) return [];
const dir = path.join(filesdir(), 'markdown');
if (!(await fs.exists(dir))) return {};
if (!(await fs.exists(dir))) return [];
const files = await fs.readdir(dir);
const res = [];
for (const file of files) {