List available frontends also when no static/frontends folder is present yet
authorIlja <pleroma@spectraltheorem.be>
Sat, 14 Aug 2021 18:42:12 +0000 (18:42 +0000)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 28 Aug 2021 16:23:49 +0000 (18:23 +0200)
commit53b0dd4ecc9f7f23983082cf610156f0840443a9
treea60b732330fffdd6f66ab7b2f8d07667c96a0142
parent09c42ce13e68b78075822a78026300d754e05d22
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
CHANGELOG.md
lib/pleroma/web/admin_api/controllers/frontend_controller.ex
test/pleroma/web/admin_api/controllers/frontend_controller_test.exs