diff options
author | 2019-10-27 17:35:38 +0100 | |
---|---|---|
committer | 2019-10-27 17:35:38 +0100 | |
commit | 8cbd668e3a09ce7a8f8fbab72705de0ad19ffd9d (patch) | |
tree | 0f75ee78a2c8fcd376b97ccfd7551014e2be9b2a /app/Controllers/Http/StaticController.js | |
parent | Update description (diff) | |
download | ferdium-server-8cbd668e3a09ce7a8f8fbab72705de0ad19ffd9d.tar.gz ferdium-server-8cbd668e3a09ce7a8f8fbab72705de0ad19ffd9d.tar.zst ferdium-server-8cbd668e3a09ce7a8f8fbab72705de0ad19ffd9d.zip |
Revert "Fix empty announcements"
This reverts commit 36bcbc3f08a2c6feb335183bbf211528800ce9de.
Diffstat (limited to 'app/Controllers/Http/StaticController.js')
-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 0c23150..7041e83 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({}); | 229 | return response.send('No announcement found.'); |
230 | } | 230 | } |
231 | } | 231 | } |
232 | 232 | ||