aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-27 10:05:52 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-27 10:05:52 +0100
commit36bcbc3f08a2c6feb335183bbf211528800ce9de (patch)
tree868e13fbb51d3c3d34b0bf408f5d0e39c10a6c0f /app
parentFix hasCustomIcon setting (diff)
downloadferdium-server-36bcbc3f08a2c6feb335183bbf211528800ce9de.tar.gz
ferdium-server-36bcbc3f08a2c6feb335183bbf211528800ce9de.tar.zst
ferdium-server-36bcbc3f08a2c6feb335183bbf211528800ce9de.zip
Fix empty announcements
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/StaticController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/Http/StaticController.js b/app/Controllers/Http/StaticController.js
index 7041e83..0c23150 100644
--- a/app/Controllers/Http/StaticController.js
+++ b/app/Controllers/Http/StaticController.js
@@ -226,7 +226,7 @@ class StaticController {
226 if (await fs.pathExists(announcement)) { 226 if (await fs.pathExists(announcement)) {
227 return response.download(announcement); 227 return response.download(announcement);
228 } 228 }
229 return response.send('No announcement found.'); 229 return response.send({});
230 } 230 }
231} 231}
232 232