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 <contact+git.pleroma.social@hacktivis.me>
Sat, 14 Aug 2021 18:42:12 +0000 (18:42 +0000)
commitf9bafc17fbfa21991d7be80b028b83d56b804961
treed6267b64e6840699811a40869fbf6803fe5d8e06
parent97eb160c3e05dc8643bb6f44fe1e7db416e137d1
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
lib/pleroma/web/admin_api/controllers/frontend_controller.ex
test/pleroma/web/admin_api/controllers/frontend_controller_test.exs