List available frontends also when no static/frontends folder is present yet

* To see what front ends are installed, it ls static/frontends. When this folder doesn't exists yet, it will return an empty array.
* Installing still works since the folder is created during installation already

Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3510
This commit is contained in:
Ilja 2021-08-14 18:42:12 +00:00 committed by Haelwenn (lanodan) Monnier
commit 53b0dd4ecc
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
3 changed files with 22 additions and 1 deletions

View file

@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- AdminAPI: Fix rendering reports containing a `nil` object
- Mastodon API: Activity Search fallbacks on status fetching after a DB Timeout/Error
- Mastodon API: Fix crash in Streamer related to reblogging
- AdminAPI: List available frontends when `static/frontends` folder is missing
## 2.4.0 - 2021-08-08