diff options
author | vantezzen <hello@vantezzen.io> | 2019-10-27 10:05:52 +0100 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-10-27 10:05:52 +0100 |
commit | 36bcbc3f08a2c6feb335183bbf211528800ce9de (patch) | |
tree | 868e13fbb51d3c3d34b0bf408f5d0e39c10a6c0f | |
parent | Fix hasCustomIcon setting (diff) | |
download | ferdium-server-36bcbc3f08a2c6feb335183bbf211528800ce9de.tar.gz ferdium-server-36bcbc3f08a2c6feb335183bbf211528800ce9de.tar.zst ferdium-server-36bcbc3f08a2c6feb335183bbf211528800ce9de.zip |
Fix empty announcements
-rw-r--r-- | app/Controllers/Http/StaticController.js | 2 |
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 | ||